Rishi Gupta
00f49d4121
views/users.py: Change error message to use Realm.string_id instead of domain.
2017-03-13 09:37:06 -07:00
Umair Khan
7bc3fa034e
linter: Add rule to check periods in translatable.
...
Make sure that the periods are part of the translatable strings.
Tweaked by tabbott to properly scope the rules.
2017-03-09 21:57:26 -08:00
Tim Abbott
84d4f62abf
lint: Exclude Acme placeholders from translations.
...
These strings represented a small waste of time for our translators.
2017-03-09 00:38:15 -08:00
Tim Abbott
8bdbcbc371
lint: Fix unnecessarily translated test file strings.
...
Our linter for translation strings shouldn't check test files, since
then we'll end up translating non-user-facing strings.
So we fix that, and actually add the opposite lint rule.
2017-03-09 00:37:44 -08:00
Tim Abbott
342a80c3de
lint: Ban use of datetime.(utc)now in Python backend.
...
This may be all we're doing for #3999 , but leaving it open just in
case.
2017-03-08 21:03:27 -08:00
Tim Abbott
e150640ddd
lint: Add lint rule for loading external scripts.
...
This is a common mistake (I'll add documentation on why in the next
commit), and this is a great hook for sending folks to the
documentation on our frontend build process.
2017-03-04 20:42:47 -08:00
Tim Abbott
d25bfb88d3
lint: Ban importing zerver.models in database migrations.
...
This doesn't work correctly, but in a subtle way.
2017-03-04 17:32:48 -08:00
Tim Abbott
7fb406b889
lint: Expand lint check for use of .text() without i18n.
...
Fixes #3705 .
2017-02-28 20:37:52 -08:00
Tim Abbott
d9ef6281fa
lint: Clean json_error/JsonableError lint exceptions.
...
We primarily need to be checking for literal strings being passed in
without i18n tags, not for code that passes a constructed value in.
2017-02-28 20:26:18 -08:00
Umair Khan
5bf83f9e0a
change-email: Implement confirmation flow.
...
This adds to Zulip support for a user changing their own email
address.
It's backed by a huge amount of work by Steve Howell on making email
changes actually work from a UI perspective.
Fixes #734 .
2017-02-23 03:15:17 -08:00
Tim Abbott
1abfdc340a
lint-all: Soften check for % comprehensions.
2017-02-18 16:29:47 -08:00
Abhijeet Kaur
87e8d9036f
contrib_bots: Restructure bots to follow a consistent structure.
...
Now all the bots that are stored in contrib_bots are in the
same file/directory format.
The format is specified here #3427 . Add tests.py file for encrypt_bot as well.
Fixes #3427 .
2017-02-10 06:44:03 -08:00
Tim Abbott
0c363dffca
lint: Ban use of deprecated assertEquals.
2017-02-08 16:38:43 -08:00
Feorlen
78b9b83650
Create new webhook walkthrough page from the integration guide.
...
Breaks out the Hello World example to create a new
webhook-walkthrough.md. Includes minor edits so the two docs
read well. Adds the new page, "Webhook walkthrough", to the TOC.
Fixes #3498
2017-02-07 18:22:31 -08:00
Tim Abbott
d98c19ca98
lint: Include pep8 checks in pre-commit hook.
2017-02-07 13:22:01 -08:00
sinwar
eab355b0cd
tools: Create more consistent checks for venv.
...
This helps make the Zulip development environment somewhat more robust
to new contributors, since it will give them a nice warning if they
try running any of our development tools outside the Zulip virtualenv.
Fixes #3468 .
2017-02-06 21:50:32 -08:00
Tim Abbott
fa02dfdff4
mobile: Add an endpoint for checking compatibility.
2017-02-03 09:55:34 -08:00
Harshit Bansal
59d22e7cb8
realm_emoji: Cleanup an unreachable try/except block.
...
Fixes : #3515 .
2017-01-30 16:43:02 -08:00
Tim Abbott
884aa2b184
streams: Eliminate last use of get_stream in views.
2017-01-29 22:07:14 -08:00
Tim Abbott
b1c2ff9d05
lint: Ban most use of get_stream from zerver/lib/actions.py.
2017-01-29 20:27:00 -08:00
Tim Abbott
7be34357b2
rename_stream: Move stream name taken check to view.
2017-01-29 20:27:00 -08:00
Tim Abbott
3f83ea3879
lint: Ban use of get_stream in most views files.
2017-01-29 20:26:59 -08:00
Tim Abbott
de68dd2860
lint: Ban use of Stream.objects.* in zerver/views.
2017-01-29 20:26:59 -08:00
Tim Abbott
bb86bba20d
stream_exists_backend: Use access_stream_by_name.
2017-01-29 20:26:59 -08:00
Tim Abbott
0af34ee710
streams: Add zerver/lib/streams.py library for security checks.
...
The goal of this library is to make it a lot easier to prevent bugs
like CVE-2017-0881 by having all of our views logic for fetching a
stream go through a couple carefully tested code paths.
2017-01-29 20:26:58 -08:00
Yago González
87a7691bfc
translations: Improve some strings.
2017-01-28 18:58:09 -08:00
Brock Whittaker
1dd8fb7966
Display realm emojis in the emoji picker container.
...
This displays the realm emojis in the emoji picker container in their
own divs styled similarly to the existing .emoji divs.
2017-01-27 15:39:22 -08:00
Tim Abbott
4e171ce787
lint: Clean up E126 PEP-8 rule.
2017-01-23 22:06:13 -08:00
Tim Abbott
31e7dcd86b
lint: Tag remaining PEP-8 rules with explanations.
2017-01-23 21:43:33 -08:00
Tim Abbott
376aa3e404
lint: Clean up E702 PEP-8 rule.
2017-01-23 21:37:27 -08:00
Tim Abbott
de99f48ce7
lint: Clean up E401 PEP-8 rule.
2017-01-23 21:36:39 -08:00
Tim Abbott
d6e38e2a5c
lint: Clean up E123 PEP-8 rule.
2017-01-23 21:34:26 -08:00
Tim Abbott
9cc83f87fc
lint: Clean up E241 PEP-8 rule.
2017-01-23 21:21:14 -08:00
Tim Abbott
fe4f7b1170
lint: Clean up E711 PEP-8 rule.
2017-01-23 21:11:49 -08:00
Tim Abbott
9640a9e864
lint: Clean up E712 PEP-8 rule.
2017-01-23 21:11:18 -08:00
Tim Abbott
e385b93448
lint: Clean up E713 PEP-8 rule.
2017-01-23 21:08:52 -08:00
Tim Abbott
a088cdaa04
lint: Clean up E714 PEP-8 rule.
2017-01-23 21:07:45 -08:00
Tim Abbott
d96f392147
lint: Clean up E741 PEP-8 rule.
2017-01-23 21:07:04 -08:00
Tim Abbott
e5daec46ec
lint: Clean up E306 PEP-8 rule.
2017-01-23 21:05:08 -08:00
Tim Abbott
e3e92903eb
lint: Document why E305 is turned off.
2017-01-23 21:03:46 -08:00
Tim Abbott
e9158dd520
lint: Clean up E121 PEP-8 rule.
2017-01-23 21:02:39 -08:00
Tim Abbott
6f0d2a9445
lint: Clean up E115 PEP-8 rule.
2017-01-23 20:55:37 -08:00
Feorlen
378ac3abf3
Lint yaml files using text file rules.
...
Fixes #3404
2017-01-23 20:53:20 -08:00
Tim Abbott
df3d6aee5d
lint: Clean up E114 PEP-8 lint rule.
2017-01-23 20:52:58 -08:00
Tim Abbott
22d1aa396b
lint: Clean up W503 PEP-8 warning.
2017-01-23 20:50:04 -08:00
Tim Abbott
bde2da7dfd
lint: clean up PEP-8 W391 rule.
2017-01-23 20:39:02 -08:00
Zev Benjamin
f4d3cc6545
Annotate ignored pep8 rules to explain why they're ignored
2017-01-23 20:19:58 -08:00
Robert Hönig
bef93959d3
Restructure converter bot.
...
Apply the new layout for 'contrib_bots' bots to the converter bot
to make it an exemplary model for new bots.
2017-01-22 05:42:46 -08:00
Robert Hönig
4415d6085f
Restructure contrib_bots bots to new layout.
...
In order to make the layout of all bots consistent, this commit
moves each bot into a folder with its name and modifies 'run.py'
so that only bots with such a structure can be executed. 'lib'
gets renamed to 'bots'.
2017-01-22 05:42:46 -08:00
Tim Abbott
1a536f381c
lint: Fix some PEP-8 lint errors.
2017-01-19 16:42:50 -08:00