Anders Kaseorg
f78e6e653b
Remove remnants of bots_unmaintained.
...
This was deleted in commit 754a9f7880
(#567 ).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-13 13:29:50 -08:00
Anders Kaseorg
9c44fe5d3a
tests: Add type annotations to test_lib.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-13 13:28:17 -08:00
Anders Kaseorg
610683ea41
ruff: Fix RUF005 Consider unpacking instead of concatenation.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-30 11:44:10 -07:00
Anders Kaseorg
61abe11c1a
run-mypy: Remove options that duplicate the mypy configuration.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-27 17:53:37 -07:00
Anders Kaseorg
3b4867ad46
simple_lib: Add type annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-25 16:59:41 -07:00
Anders Kaseorg
01d5106e9a
tools: Add type annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-25 16:59:41 -07:00
Anders Kaseorg
a9e3fe9d0c
zulip_trello: Add type annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-25 16:21:34 -07:00
Anders Kaseorg
a9607dfdf9
Convert type comments to Python ≥ 3.6 variable annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-18 01:04:47 -07:00
neiljp (Neil Pilgrim)
cca1b7d679
mypy: Add types to terminal.py.
2021-11-21 21:06:40 -08:00
PIG208
9ce7c52a10
pyupgrade: Reformat with --py36-plus.
...
This includes mainly fixes of string literals using f-strings or
.format(...), as well as unpacking of list comprehensions.
2021-06-02 18:45:57 -07:00
PIG208
6f3f9bf7e4
black: Reformat without skipping string normalization.
2021-06-02 18:45:57 -07:00
PIG208
fba21bb00d
black: Reformat skipping string normalization.
2021-06-02 18:45:57 -07:00
PIG208
5580c68ae5
isort: Reformat using isort.
2021-06-02 18:45:57 -07:00
Anders Kaseorg
75d1fe2b41
lint: Upgrade zulint.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
rht
4600ce59a3
Remove all remaining from __future__ imports.
2020-04-03 08:18:08 -04:00
rht
204871b518
Finish the remaining migration of shebang to python3.
2020-04-03 08:18:08 -04: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
Eeshan Garg
71a15bd89e
integrations/trello: Make the zulip_trello script self-contained.
...
A few users have complained about how hard it is to find the
Trello script on their systems after installing the `zulip`
package. Rishi and I decided that we should instead just ask
the users to download the script directly and run it without
having to install the `zulip` package.
This commit also ensures that the script can be run on both
py2 and py3.
2018-09-25 22:28:25 -02:30
Rhea Parekh
7e8deac8e0
bots: Add type annotations for trivia_quiz bot.
2018-06-11 20:01:41 -04:00
neiljp (Neil Pilgrim)
4c8d86c1d9
bot lib tests: Move tests of bot library to tests/.
...
This makes it clearer which files are for writing bot tests
vs tests of the infrastructure.
2018-05-30 18:29:47 -07:00
Robert Hönig
a8045a8fa9
mypy: Fix paths to chessbot files.
2018-05-28 13:43:15 +02:00
neiljp (Neil Pilgrim)
7dc0703397
tools: Move strict-optional to mypy.ini & remove option from run-mypy.
2018-04-06 13:45:11 -04:00
neiljp (Neil Pilgrim)
6cbe1f5ba7
tools: Migrate core run-mypy options to mypy.ini.
...
Add traceback option, as used in core Zulip run-mypy.
2018-04-06 13:45:11 -04:00
Rohitt Vashishtha
e49ecfcd39
mypy: Support files without extensions for scripts in /tools.
...
This assumes that files passed in force_include without any extension are meant
to be run with mypy, and thus assumed to be python scripts.
Also, we ignore the most of the tools dir, except for the tools/deploy script
for which #349 adds type annotations.
2018-03-30 07:54:10 -04:00
Alena Volkova
ea8393511a
interactive bots: Create Front bot.
2018-03-08 07:38:35 -05:00
amanagr
5fda59dde0
Susi AI Bot: Create a susi ai bot.
...
This bot uses SUSI_SERVER API to get response.
2018-02-22 09:36:25 -05:00
Viraat Chandra
b7b083f094
interactive bots: Add Trello Interactive Bot.
2018-02-16 09:54:55 -05:00
fredfishgames
3a438cafa9
zulip_bots: Migrate connect_four bot to new game_handler.
2018-01-22 11:30:31 -05:00
neiljp (Neil Pilgrim)
2366b22405
Tools: Update tools/run-mypy to default to strict-optional.
2018-01-08 15:39:03 -05:00
Xavier Cooney
1de704394a
interactive bots: Create idonethis bot.
2018-01-08 10:46:52 +01:00
fredfishgames
08bfe9d8c7
interactive bots: Create Salesforce bot.
2018-01-02 14:00:41 -05:00
Viraat Chandra
d62cc1ab58
update run-mypy: Add Baremetrics bot files.
2017-12-31 10:23:43 -05:00
Viraat Chandra
a2557ccbe6
interactive bots: Create Mention bot.
2017-12-28 16:33:00 -05:00
neiljp (Neil Pilgrim)
134b94e630
requirements: Upgrade to mypy 0.560 & adjust generics flag.
...
This upgrades to the same mypy as zulip/zulip at this point.
2017-12-21 18:43:42 -05:00
Marco Burstein
878691a745
bots: Create Wit.ai Bot.
...
Wit.ai Bot communicates with the Wit.ai API. It can be configured with
any Wit.ai token and allows for setting up a custom handler function to
handle Wit.ai responses.
2017-12-18 10:32:05 -05:00
Marco Burstein
e9aa94f81c
mypy: Add annotations for Link Shortener Bot.
...
Based on work started by @skunkmb.
2017-12-12 13:57:55 -06:00
neiljp (Neil Pilgrim)
28687f18ca
mypy: Add --disallow-any=generics & extend typing accordingly.
...
Also reset typing of ExternalBotHandler to Any after discussion.
2017-12-11 20:14:00 -06:00
fredfishgames
424a4bb631
add _ to googletranslate and googlesearch
2017-12-11 13:15:43 -06:00
fredfishgames
657c6d7b9c
interactive bots: Create DialogFlow bot.
2017-12-11 13:15:43 -06:00
Rohitt Vashishtha
e5e5868414
tests: Add test_helloworld to run-mypy list.
2017-12-11 11:43:44 -06:00
Marco Burstein
3c66894aff
incrementor: Clean up type annotation/conversion.
...
This adds mypy annotations, and we also make the type
conversions in `handle_message` be a little more clear.
(@showell helped clean up this commit a bit)
2017-12-11 10:59:40 -06:00
Marco Burstein
3c794b384b
mypy: Add annotations for Yoda Bot.
2017-12-11 07:33:16 -06:00
Marco Burstein
8f64405bae
mypy: Add annotations for Wikipedia Bot.
2017-12-11 07:26:43 -06:00
Marco Burstein
0467f83314
mypy: Add annotations for xkcd Bot.
2017-12-11 07:26:43 -06:00
Marco Burstein
700ce6a673
bots: Create Chess Bot.
...
Chess Bot is a bot that allows you to play chess against either another
user or the computer. Use `start with other user` or
`start as <color> with computer` to start a game.
In order to play against a computer, `chess.conf` must be set with the
key `stockfish_location` set to the location of the Stockfish program on
this computer.
Use `bot_handler.storage` to preserve game state across messages.
(@showell also did minor work here to have the test use verify_dialog()
and have the bot respond to empty messages)
2017-12-10 09:14:32 -06:00
Kai Chen
d33e9b9d92
mypy: Add annotations for converter.
2017-12-10 04:59:27 -08:00
Sivagiri Visakan
381401b11b
bots: Add mypy to youtube bot
2017-12-09 03:56:33 -08:00
fredfishgames
ab9128d939
mypy: Add annotations for weather.
2017-12-08 14:55:35 -08:00
fredfishgames
f7f54d159f
mypy: Add annotations for virtual_fs.
2017-12-08 14:55:35 -08:00
fredfishgames
9d5fbc2b5b
mypy: Add annotations for help.
2017-12-07 19:12:39 -08:00