Commit graph

1124 commits

Author SHA1 Message Date
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
Juan Verhook 25a8315f71 Annotate api/zulip/__init__.py.
Note that we still can't run mypy against this file and other files,
because of how the interface is dynamically created via _register.  We
will need to change that or use a stub file to make it possible to
annotate this.

This was tweaked by tabbott to fix some bugs.
2016-12-02 18:26:47 -08:00
Sidhant Bhavnani 2e2b8af9fd pep8: Fix E303 violations. 2016-12-02 15:34:11 -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
AZtheAsian 73bd3572cf pep8: Fix E111 violations 2016-12-01 14:18:11 -08:00
Rafid Aslam fad4fbc733 lint: Fix E127 pep8 violations.
Fix pep8: E127 continuation line over-indented for visual indent
style issue.
2016-12-01 10:23:55 -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
Rafid Aslam d4410365ea pep8: Fix E225 pep8 violations. 2016-11-28 15:21:15 -08:00
Tim Abbott 245c05decd twitter-search-bot: Line-wrap very long lines. 2016-11-26 21:24:05 -08:00
Tomasz Kolek 963de743ec Document ZULIP SITE param in twitter bots. 2016-11-26 19:30:45 -08:00
Tomasz Kolek f380127f1e integrations: Change default ZULIP_SITE to https://zulip.example.com.
Modified:
    asana
    basecamp
    codebase
    git
    jira
    svn
    trac
2016-11-26 19:30:32 -08:00
Tomasz Kolek 3e877e069f Add documentation for changing SITE param in perforce configuration. 2016-11-26 19:24:24 -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 c748962855 Remove shebang line from non-scripts
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Anders Kaseorg f2b82f3ad8 Mark scripts executable
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
bungeye 7bd78456b3 Update twitter-bot to use latest python-twitter API. 2016-11-17 11:17:58 -08:00
Tim Abbott 253196af35 rss-bot: Fix incorrect use of zulip.generate_option_group.
The fields set by the automatic option group all have `zulip_` at the
start of their names.
2016-11-14 22:48:28 -08:00
paxapy e1dcf74242 lint: Fix E703 pep8 violations. 2016-11-09 15:18:35 -08:00
umkay cac0d1c394 api: Add default protocol for localhost.
Add default "http://" to site argument locally if it is not specified
in an api call.

This fixes a problem where if you didn't manually specify `http://`
when connecting to a development server, the API bindings would hang
trying to connect using HTTPS.
2016-11-03 18:09:26 -07:00
reyha 4cdc59a3e4 API bindings: Raise error if site param not defined.
Stops defaulting the site parameter to the now-nonexistent
https://zulip.com, and ask the user to enter the site via --site or
~/.zuliprc if not provided.

Fixes #2039.
2016-10-25 18:08:46 -07:00
Tim Abbott 7187c2ef5e twitter bots: Update to use current python-twitter.
It appears that twitter has changed several of its APIs.
2016-10-17 23:21:39 -07:00
Tim Abbott 9aa080e663 mypy: Remove a bunch of now-unnecessary type: ignore annotations.
Since mypy and typeshed have advanced a lot over the last several
months, we no longer need these `type: ignore` annotations.
2016-10-17 11:48:34 -07:00
Steve Howell 3758d76123 contrib_bots: Simulate a file system with a bot. 2016-10-16 14:41:24 -07:00
Steve Howell 0dab69b76f Add StateHandler to contrib_bots/run.py.
This allows bots to be stateful.  It doesn't handle persistence
after the bot shuts down, but it does store state between
invocations of handle_message.
2016-10-16 14:41:24 -07:00
Tim Abbott 2ed9f15ff7 Annotate remaining scripts. 2016-10-15 22:36:10 -07:00
Tim Abbott 43bf07bf15 Annotate API 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
Tim Abbott 9559046741 post-receive: Revert buggy Python 3 import changes.
This reverts commit 0af154a30182979d6bf5aa9289d0c9b37d923819.
2016-09-27 21:18:29 -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
Steve Howell 05191181d9 bots: Add --config-file to contrib_bots/run.py. 2016-08-24 12:09:11 -07:00
Steve Howell e08323c143 bots: Fix typo in contrib_bots/lib/readme.md. 2016-08-24 12:08:39 -07:00
Tim Abbott d081703af8 contrib_bots: Expand documentation. 2016-08-22 19:53:16 -07:00
Steve Howell 38c7b611b6 bots: Add example bots for "followup" and "help".
This commit also starts to build out the infrastructure for
helping Zulip contributors to more easily author bots in
a way that sets up for running some bots on the server itself.
2016-08-22 19:43:12 -07:00
Tim Abbott 8d75662c7c Update zulip.com/integrations link to point to zulipchat.com.
zulip.com will stop running at some point in the near future, and we
don't want these links to break.
2016-08-22 17:26:41 -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