Tim Abbott
fa3a1de9c7
zulip_codebase_mirror: Move Text/six imports after sys.path changes.
2017-01-03 20:24:03 -08:00
AZtheAsian
c155b9162d
mypy: Annotate api/integrations/codebase/zulip_codebase_mirror.
2017-01-03 20:23:06 -08:00
Tim Abbott
767f30a7e5
zulip_basecamp_mirror: Move some imports after sys.path updates.
2017-01-03 18:36:12 -08:00
Jackson
98ca518461
mypy: Add annotations to api/integrations/basecamp/zulip_basecamp_mirror
2017-01-03 18:34:26 -08:00
Jackson
0a9869868c
Clean PUT /users to POST /users
2017-01-03 15:40:00 -08:00
Jackson
566d55b7c6
mypy: Annotate api/integrations/hg/zulip-changegroup.py
2017-01-03 11:44:43 -08:00
Sampriti Panda
246ac7cadc
mypy: Annotate api/integrations/twitter/twitter-search-bot
2017-01-02 08:01:37 -08:00
Jackson
88da3dea7e
mypy: Annotate api/integrations/trac/zulip_trac.py
2016-12-30 20:05:14 -08:00
Tommy Ip
29c291b981
mypy: Annotate *api/integrations/perforce/zulip_change-commit.py*.
2016-12-30 15:19:34 -08:00
Vamshi Balanaga
bf71ad162c
Update Google Calendar Integration.
...
Update integration to use the latest Google API client.
Move Google Account authorization code to a separate file.
Move relevant files from 'bots/' to 'api/integrations/google/'.
Add documentation for integration.
2016-12-30 12:01:31 -08:00
Tim Abbott
5a51f5f9d5
bots: Move gcal-bot into official API release.
2016-12-30 12:01:31 -08:00
Joshua Pan
0c2d424816
mypy: Get rid of six.moves.configparser and add appropriate classes.
2016-12-30 11:41:17 -08:00
lonerz
3c1c65eaf8
mypy: Annotate api/integrations/twitter/twitter-bot
2016-12-30 11:40:45 -08:00
Tommy Ip
7f187418d4
mypy: Annotate *api/integrations/nagios/nagios-notify-zulip*.
2016-12-28 15:44:47 -08:00
Tommy Ip
3d015eb259
mypy: Annotate *api/integrations/svn/post-commit*.
2016-12-28 08:54:53 -08:00
Tim Abbott
ea8e34008d
lint: Fix pep-8 rules on recently added files.
2016-12-27 20:16:23 -08:00
Rishi Gupta
6d780d8dc2
mypy: Convert api/ and docs/ to use typing.Text.
2016-12-26 16:11:37 -08:00
Steve Howell
efc2d1a675
Simplify, document, and fix the API code.
...
We used to create endpoints with Client._register.
Now we now have explicit methods for the endpoints.
This allows us to add docstrings and stricter mypy annotations.
This fix also introduces a call_endpoint() method that avoids
the need for manually building urls with API_VERSTRING when you
know the URL pattern of the endpoint you want to hit (and when
the API doesn't have a convenient wrapper).
I fixed a bug with create_users where it now uses PUT instead
of POST.
I also removed client.export(), which was just broken.
I had to change recent-messages and zulip-export, which were
using client.do_api_query and Client._register.
Now it's easier to just call client.call_endpoint() for
situations where our API doesn't have convenient wrappers,
so that's what I did with those scripts.
2016-12-21 11:22:42 -08:00
Tim Abbott
e1ed8e61d8
api: remove use of zulip.com domain in API bindings.
2016-12-15 09:35:37 -08:00
Tim Abbott
ee3fbe9193
api: Clean up the README.md somewhat.
2016-12-13 22:55:40 -08:00
Tim Abbott
9248edaaeb
api: Require a recent version of the typing module.
2016-12-13 22:55:40 -08:00
Tim Abbott
34c3e03ef8
api: Update list of example scripts to include.
2016-12-13 22:55:40 -08:00
Tim Abbott
204ab0a3da
api: Update author to Zulip open source project.
2016-12-13 22:55:40 -08:00
Steve Howell
0c49cebe86
Remove deprecated get_messages() API.
...
This also eliminates a very short script that basically
does nothing but call the long-dead API, so there's not
much to salvage there.
2016-12-13 20:33:20 -08:00
reallyly
94b28e0afb
pep8: Fix E128 violations.
...
With some line-wrapping tweaks by tabbott.
2016-12-13 10:50:14 -08:00
Joy Chen
77938f6247
mypy: Annotate *bots/githook-post-receive*
2016-12-03 15:58:22 -06:00
Joy Chen
97a9fea89d
delete check_output backport: Python 2.6 no longer supported
2016-12-03 15:57:20 -06:00
nikolay
abc2ff4a06
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
a6f91064a2
pep8: Fix E129 violations
2016-12-03 10:56:36 -08:00
bulat22101
adebc75740
pep8: Fix E502 violations
2016-12-03 10:56:36 -08:00
Juan Verhook
1923045ca6
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
8c0c12c1d9
pep8: Fix E303 violations.
2016-12-02 15:34:11 -08:00
AZtheAsian
7e14fe65ab
pep8: fix E202 violations
2016-12-01 23:06:02 -08:00
AZtheAsian
c23f9e0df7
pep8: Fix E111 violations
2016-12-01 14:18:11 -08:00
Rafid Aslam
c5316b4002
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
Rafid Aslam
41bd88d5ed
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
7a2282986a
pep8: Fix E225 pep8 violations.
2016-11-28 15:21:15 -08:00
Tim Abbott
6b42b12768
twitter-search-bot: Line-wrap very long lines.
2016-11-26 21:24:05 -08:00
Tomasz Kolek
b7dfcadf33
Document ZULIP SITE param in twitter bots.
2016-11-26 19:30:45 -08:00
Tomasz Kolek
6d36eb00b6
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
2c252de311
Add documentation for changing SITE param in perforce configuration.
2016-11-26 19:24:24 -08:00
Anders Kaseorg
573ec14955
Remove shebang line from non-scripts
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Anders Kaseorg
d1dc2cf30e
Mark scripts executable
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
bungeye
87c62a6937
Update twitter-bot to use latest python-twitter API.
2016-11-17 11:17:58 -08:00
Tim Abbott
57e7b741b6
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
6d93b3b60c
lint: Fix E703 pep8 violations.
2016-11-09 15:18:35 -08:00
umkay
c43a15ed18
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
68f2c66b12
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
497d1c1f4e
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
4a4664d268
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