Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 101049d

Browse files
amanagrtimabbott
authored andcommitted
lint: Add mypy as an external_linter to be run with ./tools/lint.
We were not running `mypy` with `./tools/lint` prior to this.
1 parent 7f39201 commit 101049d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def run():
2525
by_lang = linter_config.list_files(file_types=['py', 'sh', 'json', 'md', 'txt'],
2626
exclude=EXCLUDED_FILES)
2727

28+
linter_config.external_linter('mypy', ['tools/run-mypy'], ['py'], pass_targets=False,
29+
description="Static type checker for Python (config: mypy.ini)")
30+
2831
@linter_config.lint
2932
def custom_py():
3033
# type: () -> int

0 commit comments

Comments
 (0)