nikolay
cc5444a725
pep8: Fix many rule E128 violations.
...
[Tweaked by tabbott to adjust some approaches used in wrapping]
2016-12-03 13:33:31 -08:00
bulat22101
47488217b1
pep8: Fix E129 violations
2016-12-03 10:56:36 -08:00
bulat22101
dc48a41efe
pep8: Fix E502 violations
2016-12-03 10:56:36 -08:00
Alex Huang
6eb6016913
pep8: Fix E131.
2016-12-01 23:16:47 -08:00
Alex Huang
68f7dae482
pep8: Fix E122.
2016-12-01 23:16:35 -08:00
AZtheAsian
e410264372
pep8: fix E201 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
439dc8ca96
pep8: fix E202 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
418f396b32
pep8: Fix E203 violations
2016-12-01 20:37:57 -08:00
Bickio
bc9bb4287d
pep8: Fix E125.
2016-11-30 20:03:29 -08:00
Tommy Ip
1cb7c41786
pep8: Fix E701 violations.
2016-11-30 20:45:09 +00:00
Heidi Dong
836e3379c9
mypy: Annotate bots/gcal-bot.
2016-11-29 20:49:11 -08:00
Rafid Aslam
1ae8ac85d8
pep8: Fix E301 pep8 violations.
...
Fix "E301: expected (1 or 2) blank line" pep8 violations.
2016-11-29 08:51:44 -08:00
Anders Kaseorg
fe99695210
Always start python via shebang lines.
...
This is preparation for supporting using Python 3 in production.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 14:46:37 -08:00
Anders Kaseorg
f2b82f3ad8
Mark scripts executable
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Tim Abbott
2ed9f15ff7
Annotate remaining scripts.
2016-10-15 22:36:10 -07:00
reyha
28b697ac9d
irc-mirror: Update the installation link.
...
This updates the link to python-irc to its current URL.
2016-10-10 16:23:11 -07:00
Sahil Dua
6900cd2e9a
Remove extra new lines at the ends of Zulip authoried files.
...
Fixes #1627 .
[tweaked by tabbott to avoid patching third-party modules, for now]
2016-09-26 21:05:24 -07:00
Tim Abbott
ea7991443c
check-mirroring: Fix unnecessary type: ignore.
2016-09-12 21:43:45 -07:00
Tim Abbott
bb68ad4269
Annotate bots/summarize_stream.py.
2016-09-11 17:09:27 -07:00
Tim Abbott
38b62518af
Annotate irc-mirror.py.
2016-09-10 12:20:24 -07:00
Tim Abbott
33733e67ba
Annotate bots/zulip_git_config.py.
2016-09-10 11:57:08 -07:00
Tim Abbott
534774bd7e
Annotate check-mirroring.
2016-09-10 11:57:01 -07:00
Tim Abbott
b46aa33656
lint: Ban lines longer than 140 characters without #ignorelongline.
2016-08-19 12:03:09 -07:00
Tim Abbott
7b80e9bcc4
zephyr_mirror_backend: Update support email address.
...
Arguably we should figure out a way to make this fetch the support
email from the server (or something), but in the short term it seems
worth making the email address at least correct.
2016-08-17 22:39:08 -07:00
Tim Abbott
ede820c9e3
log2zulip: use a Zulip virtualenv if available.
...
This makes it easier to use log2zulip in a Zulip server environment.
2016-08-12 13:17:36 -07:00
Tim Abbott
80a4826f49
Annotate zephyr_mirror.py.
2016-08-04 15:57:03 -07:00
Tim Abbott
f50548d644
zephyr_mirror: Add typing import.
2016-08-04 15:57:03 -07:00
Tim Abbott
a33c565ddc
jabber_mirror: Add missing annotation.
2016-08-04 15:57:03 -07:00
Taranjeet
6034ae7b9a
Wrap some lines with length greater than 120.
...
With some tweaks by tabbott.
2016-07-06 14:35:16 -07:00
Eklavya Sharma
e786295352
Replace python2.7 by python everywhere.
2016-05-29 05:03:08 -07:00
Eklavya Sharma
a21cb61b3f
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Tim Abbott
ab505749ad
Move rabbitmq consumer checks from bots/ to scripts/nagios/.
2016-05-07 19:37:06 -07:00
Tim Abbott
e1deeba72a
nagios: Move cron_file_helper from bots/ to scripts/lib.
...
This ensures the tool is available in Zulip production deployments.
2016-05-07 19:37:06 -07:00
Tim Abbott
2b386921f0
Finish purging 'fromt typing import *' from Zulip codebase.
2016-04-07 14:11:21 -07:00
Tim Abbott
dd4fe7e099
Add PEP-484 annotations to bots/.
2016-04-03 15:40:23 -07:00
Eklavya Sharma
5e3013d2c2
Partially apply Python 3 libmodernize.fixes.fix_dict_six.
...
Refer to #256
2016-03-19 15:52:58 -07:00
Eklavya Sharma
7ccd60584a
Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six
...
Refer to #256
2016-03-10 22:03:58 -08:00
Eklavya Sharma
ab2692b217
Apply Python 3 futurize transform libmodernize.fixes.fix_file
...
Refer to #256
2016-03-10 22:02:34 -08:00
Eklavya Sharma
37365ba5a3
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
...
Refer #256
2016-03-10 22:02:17 -08:00
Eklavya Sharma
5272ca0674
Apply Python 3 futurize transform lib2to3.fixes.fix_except
2016-03-10 22:01:50 -08:00
Zev Benjamin
8c188cda49
Make log2zulip error message more accurate.
...
In particular, in the case of a permissions issue reading the log
file, it would claim the log file doesn't exist.
2016-02-02 23:04:48 -08:00
Tim Abbott
b9eacb19c9
python3: Fix usage of .keys()/.values() to handle iterators.
...
This fixes the places where we use the result of .keys(), .items(),
and .values() that wouldn't work with an iterator to wrap them with
list().
2016-01-26 21:11:25 -08:00
Tim Abbott
4dc5761ce2
Switch all urllib/urlparse usage to six.moves.urllib.
...
This provides Python 2+3 compatibility for our use of urllib.
Also add a test to avoid future regressions.
2016-01-26 21:09:43 -08:00
Tim Abbott
91d851c448
Apply modernize transform libmodernize.fixes.fix_file.
...
This replaces use of file() with open() which is python 3 compatible,
and also adds it to our python 3 support test suite.
2016-01-26 21:09:42 -08:00
Tim Abbott
e4f85d2462
Use new-style classes consistently for Python 3 support.
...
Also add the fixer for this to our list of fixers we check.
2015-11-04 08:01:52 -08:00
Tim Abbott
c5e2995b6e
Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six.
2015-11-01 09:35:06 -08:00
Tim Abbott
3cfe157299
Apply Python 3 futurize transform libmodernize.fixes.fix_map.
2015-11-01 09:35:05 -08:00
Tim Abbott
239d080616
Apply Python 3 futurize transform libmodernize.fixes.fix_imports_six.
2015-11-01 09:26:16 -08:00
Tim Abbott
ec5103191e
Apply Python 3 futurize transform libmodernize.fixes.fix_filter.
2015-11-01 09:26:16 -08:00
Tim Abbott
328816a329
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import.
2015-11-01 09:26:16 -08:00