rht
dea467ccd7
lint: Remove explicit python invocation check.
2020-04-02 07:09:46 -04: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
7f39201e79
lint: Use zulint as wrapper for running different linters.
2020-01-14 16:00:24 -08:00
Tim Abbott
3bbe972314
tools: Disable python3 shebang lint check for botserver.
...
Since the botserver can be run directly after installation via pip,
and only supports Python 3, we definitely want the explicit shebang
lines there.
We only don't want this in zulip/, which supports Python 2+3.
2019-03-18 13:58:11 -07:00
neiljp (Neil Pilgrim)
69fab99ba7
linter: Add check for incorrect use of inheritance in Bot test cases.
2018-06-09 12:49:49 -04:00
Robert Hönig
8e653fe064
linter: Add rule to favor Botserver over botserver or bot server.
2018-05-29 10:59:15 +02:00
Steve Howell
41b065eb76
tools: Fix python -> python3 for bots scripts.
...
This also turns off the custom lint check that was
preventing an explicit version for scripts in "tools".
Fixes #187
2018-01-02 17:38:12 +01:00
Steve Howell
c4b42ff599
lint: Prevent __future__ in zulip_bots/zulip_bots/bots.
...
We should eventually extend this lint rule to all of
zulip_bots.
2017-12-12 07:35:30 -06:00
Steve Howell
fd069dff82
lint: Require python3 shebangs.
...
This commit was originally from @fredfishgames, but it
needed a big rebase due to use letting it sit too long.
Also, we decided not to have shebangs at the top of test
files.
2017-12-12 07:14:16 -06:00
fredfishgames
5673b49826
Added self: Any linter test
2017-12-08 10:48:42 -08:00
derAnfaenger
80fba127ad
litner: Add rule against using pprint.
2017-08-30 09:41:24 -07:00
Eeshan Garg
d63269ee6a
zulip_bots: Rename bots/{bot}/readme.md -> bots/{bot}/doc.md.
...
doc.md better describes the style of documentation that will live
inside these files, since we want these to be similar to our
webhooks' doc.md files in terms of how these are rendered and
composed of Markdown macros.
2017-08-15 19:30:13 -07:00
derAnfaenger
0dfb405748
linter: Add open() call restriction for the john bot.
2017-07-27 10:35:31 -07:00
derAnfaenger
5dd359fd4d
testing: Properly exclude files for linting in Windows.
...
For files to be excluded in Windows, their paths have to
be normalized, so that the string matching works.
2017-07-25 10:55:49 -07:00
derAnfaenger
428ded449e
testing: Add custom linter rules.
2017-07-25 10:55:49 -07:00