lint: Add mypy as an external_linter to be run with ./tools/lint.
We were not running `mypy` with `./tools/lint` prior to this.
This commit is contained in:
parent
7f39201e79
commit
101049de27
|
@ -25,6 +25,9 @@ def run():
|
||||||
by_lang = linter_config.list_files(file_types=['py', 'sh', 'json', 'md', 'txt'],
|
by_lang = linter_config.list_files(file_types=['py', 'sh', 'json', 'md', 'txt'],
|
||||||
exclude=EXCLUDED_FILES)
|
exclude=EXCLUDED_FILES)
|
||||||
|
|
||||||
|
linter_config.external_linter('mypy', ['tools/run-mypy'], ['py'], pass_targets=False,
|
||||||
|
description="Static type checker for Python (config: mypy.ini)")
|
||||||
|
|
||||||
@linter_config.lint
|
@linter_config.lint
|
||||||
def custom_py():
|
def custom_py():
|
||||||
# type: () -> int
|
# type: () -> int
|
||||||
|
|
Loading…
Reference in a new issue