Jordan Gedney
f124531a88
mypy: Add type: ignores for optparse.OptionGroup.
...
Typeshed has already fixed this upstream (Description is optional)
2017-05-22 14:40:48 -07:00
umkay
b404fb3672
mypy: Change type annotation from union to explicit set
2017-05-22 13:47:55 -07:00
Tim Abbott
53af52fd69
zephyr_mirror: Include URL for mirroring server.
2017-05-10 11:54:09 -07:00
Tim Abbott
b426870a30
zephyr_mirror: Fix buggy zephyr_mirror_backend import.
2017-05-10 11:52:34 -07:00
Tim Abbott
576c6f51f0
zmirror-renew-kerberos: Clean up hardcoding of user ID.
2017-05-10 11:52:34 -07:00
Tim Abbott
fed5180d19
zephyr_mirror: Avoid transmitting null characters to server.
2017-05-10 11:52:34 -07:00
Tim Abbott
951c5588b6
zephyr_mirror: Add support for discuss-format messages.
2017-05-10 11:52:34 -07:00
Aditya Bansal
65a6460d6e
pep8: Add compliance with rule E261 to zephyr_mirror_backend.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
ab3cbd313b
pep8: Add compliance with rule E261 to summarize_stream.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
fbcfa6239a
pep8: Add compliance with rule E261 to jabber_mirror_backend.py.
2017-05-07 23:21:50 -07:00
Aditya Bansal
c7fbe91ab6
pep8: Add compliance with rule E261 to irc-mirror.py.
2017-05-07 23:21:50 -07:00
Tim Abbott
3cf8d11156
zephyr_mirror: Simplify process for finding backend script.
2017-03-20 21:52:04 -07:00
Tim Abbott
beb2a6570f
sync_public_streams: Use option group for arguments.
2017-03-20 21:52:04 -07:00
Tim Abbott
362d7424ed
check-mirror: Remove unnecessary zulip_user variable.
2017-03-20 21:52:04 -07:00
Tim Abbott
fa6a8488dd
check-mirroring: Remove api.zulip.com hardcoding.
2017-03-20 21:52:04 -07:00
Jacob Hurwitz
baefa61edf
[zephyr_mirror] add support for zcrypt'ed classes with colons
...
The regex used for parsing .crypt-table didn't allow colons in class
names. This commit changes the [^:] token with \S, meaning that class
names can now contain colons but can no longer contain whitespace.
I think this should be fine, since zcrypt is only used for MIT zephyr,
where (by convention) class names do not contain whitespace.
Additionally, it should not be possible for us to accidentally consume a
field-separating colon as part of the class capture group because the
regex enforces that all field-separating colons are followed by one or
more whitespace characters, whereas the class name cannot contain
whitespace.
2017-03-19 22:30:21 -07:00
Tim Abbott
fa67e87d3d
mypy: Fix some new errors flagged by latest mypy master.
...
Mostly list -> List bugs in annotations.
2017-03-19 21:03:45 -07:00
sinwar
04580dbb97
python: Fix remaining bare excepts in codebase.
...
Fixes #2862 .
2017-03-05 16:17:04 -08:00
Raghav Jajodia
58f5e729b6
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Rishi Gupta
6c47fa77b6
Use time.time() instead of datetime.now() to measure elapsed time.
...
Both because it is more idiomatic and because we will soon start enforcing
that all datetimes in Zulip are timezone aware.
2017-03-01 22:54:28 -08:00
Tim Abbott
722fc56534
lint: Clean up E126 PEP-8 rule.
2017-01-23 22:06:13 -08:00
Tim Abbott
55e8d5f58d
lint: Clean up E123 PEP-8 rule.
2017-01-23 21:34:26 -08:00
Tim Abbott
5b3d2c9100
lint: Clean up E241 PEP-8 rule.
2017-01-23 21:21:14 -08:00
Tim Abbott
07cdd69e42
lint: Clean up W503 PEP-8 warning.
2017-01-23 20:50:04 -08:00
JefftheBest1
5e95dc3bdc
Fixed typos with threshold.
2017-01-12 04:50:20 -08:00
Tommy Ip
d5690c80c9
bots: Fix bare except clause.
2017-01-09 00:39:33 +00:00
Tommy Ip
6302f0d645
bots: Fix bare except clause.
2017-01-08 16:25:22 -08:00
Tommy Ip
39d7db40b3
bots: Fix bare except clause.
2017-01-08 16:25:22 -08:00
Tim Abbott
b352dc85f0
bots: Move gcal-bot into official API release.
2016-12-30 12:01:31 -08:00
Tim Abbott
adc678a3ab
bots: Fix jabber_mirror_backend annotations.
...
mypy was super confused because the name "zulip" was both an import
and a global variable in the file.
2016-12-27 21:39:32 -08:00
Steve Howell
5ad39e3971
Remove mypy exemption for api/zulip/__init__.py.
...
This required instead exempting these files:
bots/jabber_mirror_backend.py
tools/deprecated/iframe-bot/show-last-messages
Turning on mypy for the API exposes issues in the annotations
of other files.
2016-12-21 11:22:42 -08:00
Tim Abbott
42eaabf203
bots: Remove obsolete tddium-notify-humbug.
2016-12-15 12:16:26 -08:00
Tim Abbott
ca12fd8009
bots: Remove old zulip.com configuration files.
2016-12-15 09:39:32 -08:00
reallyly
9d6e7cfea5
pep8: Fix E128 violations.
...
With some line-wrapping tweaks by tabbott.
2016-12-13 10:50:14 -08:00
anirudhjain75
92981590f5
Annotate zephyr_mirror_backend.py.
...
With some tweaks by tabbott to update tuple->Tuple and update comments.
2016-12-07 15:57:55 -08:00
Tudor Nazarie
476a591ef5
Annotate bots/jabber_mirror_backend.py
2016-12-06 09:52:08 -08:00
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