Commit graph

2098 commits

Author SHA1 Message Date
rht dea467ccd7 lint: Remove explicit python invocation check. 2020-04-02 07:09:46 -04:00
Steve Howell 754a9f7880 bots: Remove unmaintained bots. 2020-04-01 08:41:51 -04:00
orientor d8157d6b80 bridge_with_irc: Initialize IRC bot after checking Zulip bot.
Confirm whether Zulip bot is subscribed to the required stream
first and then Initialize IRC bot object.
2020-03-30 17:41:14 -04:00
orientor de40005f5e bridge_with_irc: Improve user-friendliness.
Edit error and success messages of zulip-irc bridge to be more
user friendly.
2020-03-30 17:41:14 -04:00
fishfred 87b57f879c bots: Fixed incorrect computer play message 2020-03-30 12:02:32 -04:00
fishfred 0a0f9e9d21 bots: Fix tictactoe, connect_four emoji 2020-03-30 12:02:32 -04:00
rht b771bacac0 bridge_with_irc: Check if bot is subscribed to stream at startup. 2020-03-27 06:59:29 -04:00
Eeshan Garg ce73dab121 pypi: Release version 0.6.4. 2020-03-26 19:52:46 -02:30
Eeshan Garg 0b930cfe86 pypi: Add support for Python 3.8. 2020-03-26 13:38:08 -07:00
akashaviator 2cf49788fd api: Implement GET users/{id} endpoint. 2020-03-25 17:00:52 -07:00
neiljp (Neil Pilgrim) 1d1e93d92e requirements: Upgrade mypy from 0.600 to 0.770. 2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) 60984ab2fa mypy: Add type ignores for mixing of str & bytes in zephyr mirror.
In principle these should be fixed properly, but the zephyr code is
difficult to test except in a production setting and is unlikely to be
heavily developed in future.
2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) 520a004b85 botserver: Raise exceptions rather than returning them. 2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) fca2404b46 mypy: Add type ignore in botserver/server.py. 2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) 436b619021 integrations: Use universal_newlines in check_output to output as str.
Picked up by mypy; otherwise output is in bytes (at least on python 3).
2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) f81843f189 mypy: Clarify type hints in zulip/integrations/. 2020-03-24 21:25:45 -07:00
neiljp (Neil Pilgrim) 357a5e06f3 mypy: Clarify type hints in zulip_bots/. 2020-03-24 21:25:45 -07:00
rht 8a74f576a3 python: Remove per-file copyright notices.
These notices are redundant and obscure what are often very short
example scripts.
2020-03-23 12:52:52 -07:00
derAnfaenger 1dc2bf8ba6 docs: Add more proper LICENSE and THIRDPARTY files.
This will allow us to remove the duplicate notices at the tops of
individual files, which obscure the actual code.

Fixes #43.
2020-03-22 16:52:19 -07:00
Mateusz Mandera 8fc5b777db api: Fix undefined variable reference from previous commit. 2020-03-14 11:36:34 -07:00
orientor 056963bedd api: Add delay_cap as class variable of CountingBackoff class. 2020-03-05 13:33:50 -08:00
orientor 62555f97a0 Bots: Update Owlbot from v1 to v2. 2020-03-04 13:12:29 -08:00
Kushal Kothari f253819a58
provision: Fix a typo in virtualenv instruction. 2020-03-03 22:39:28 -08:00
orientor 731eb23c9a bridge_with_irc: Print message on successful connection. 2020-03-02 05:51:54 -05:00
Steve Howell dd37e27b36 docstring: Use user_ids for typing endpoint. 2020-02-23 07:45:33 -05:00
Aman Agrawal 32a46cbaa9 mypy: Use Rule from zulint to specify type for custom rules. 2020-01-14 16:00:24 -08:00
Aman 7588333079 lint: Use zulint's methods for lister and printing errors.
Remove lister, printer and README files from server_lib.
2020-01-14 16:00:24 -08:00
Aman Agrawal 101049de27 lint: Add mypy as an external_linter to be run with ./tools/lint.
We were not running `mypy` with `./tools/lint` prior to this.
2020-01-14 16:00:24 -08:00
Aman 7f39201e79 lint: Use zulint as wrapper for running different linters. 2020-01-14 16:00:24 -08:00
Aman 264632230b lint: Remove trailing whitespace from json files. 2020-01-14 16:00:24 -08:00
Sutou Kouhei 843b21769a twitter: Add support for phrase.
Twitter supports phrase search by quoting terms such as "Zulip API".

If we use the feature, the current twitter-bot can't detect used
search phrase. We can detect used search phrase with this change.
2020-01-14 15:58:08 -08:00
Eeshan Garg 957b5e7ad8 pypi: Release version 0.6.3. 2019-12-16 11:48:56 -03:30
neiljp (Neil Pilgrim) 0a01ea0412 zulip: Move dependency on distro into zulip package. 2019-12-15 11:06:43 -08:00
Eeshan Garg efcc89da9d pypi: Release version 0.6.2. 2019-12-14 16:38:48 -03:30
Puneeth Chaganti 63bc9b8a4f zulip: Use distro.linux_distribution instead of platform
Python 3.8 removes `platform.linux_distribution` and `distro` is the
recommended replacement to use for this function.
2019-11-01 17:49:49 -07:00
Kreyren 3e155ecf93 rss-bot: Updated link pointing to .zuliprc
I believe that rss-bot is pointing to wrong page on documentation, this MR should fix it.

Signed-off-by: Jacob Hrbek <werifgx@gmail.com>
2019-09-08 16:51:54 -07:00
Anders Kaseorg bcffa76873 Restore dependency on typing package for Python < 3.5.
Apparently we still support Python 2.7 for some reason.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-09-03 13:29:52 -07:00
neiljp (Neil Pilgrim) 0427d962b0 setup.py: Add supported python versions for all packages. 2019-09-03 13:28:32 -07:00
Rohitt Vashishtha 74d902d14f botserver: Allow importing custom bot modules.
We can now specify path to a bot's python file as the ini section
header in the botserver's config file. For example:

[~/Documents/helloworld.py]
email=a@b.com
key=XXXX
site=https://b.com
token=XXXX
2019-09-03 13:27:21 -07:00
Anders Kaseorg 804501610b Remove dependency on typing package.
It’s in the standard library in Python ≥ 3.5.  (We could have used
`'typing;python_version<"3.5"'` to continue supporting earlier
versions, but we don’t.)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-09 17:29:04 -07:00
Anders Kaseorg c6a52d798e zulip_bots, zulip_botserver: Add PEP 561 type annotation markers.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-09 17:29:04 -07:00
Anders Kaseorg 567d6ebc25 Client.get_user_presence: Fix blatantly incorrect type annotation.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-08-07 16:53:42 -07:00
neiljp (Neil Pilgrim) 725c7574a5 bots: Use ImportError in Python<3.6 for failed import of bot by name.
This previously caused a traceback if the bot couldn't be found.
2019-07-27 16:38:23 -07:00
neiljp (Neil Pilgrim) f09017ece6 travis: Remove support for python 3.4; add support for 3.7. 2019-07-27 16:36:18 -07:00
Eeshan Garg e5bcd095fd pypi: Release version 0.6.1. 2019-07-14 21:17:53 -02:30
Puneeth Chaganti 1231da46bf log2zulip: Remove unnecessary loop and fix incorrect variable name. 2019-07-13 11:09:36 -07:00
Alexandra Ciobica ca1b415a1b docs: Change integration docs so that all the pages from portico/integrations look the same. 2019-07-13 11:08:22 -07:00
Sheehan Khan 0e8347d440 bot tests: Improve test coverage for TicTacToeModel.
This commit improves test coverage of from 41.66% to 50%.

This commit is related to #417
2019-04-21 20:09:44 -02:30
neiljp (Neil Pilgrim) c2e5b14034 api: Add UnrecoverableNetworkError Exception & use in do_api_query.
This replaces one case where the base ZulipError was raised, and another
where the original exception was re-raised.

This method, and so all API calls, should now only fail via raising this
Exception or by a non-'success' result in the return value dict; this
should avoid leaking any implementation detail and clarify expectations
in user code.
2019-03-29 14:12:26 -07:00
Eeshan Garg accfa8ddaf pypi: Release version 0.6.0. 2019-03-19 19:43:23 -02:30