mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 10:31:41 +01:00
Simplify mypy
config (#45)
Instead of specifying stricter checks one by one, just run `mypy` in `strict` mode. modified: tox.ini
This commit is contained in:
parent
d717f86238
commit
8a406dd9d2
20
tox.ini
20
tox.ini
@ -52,8 +52,8 @@ deps =
|
|||||||
mypy
|
mypy
|
||||||
commands =
|
commands =
|
||||||
-mypy \
|
-mypy \
|
||||||
|
--strict \
|
||||||
--show-error-context \
|
--show-error-context \
|
||||||
--config-file {toxinidir}/tox.ini \
|
|
||||||
--html-report {env:MYPYHTML}.py3.{envname} \
|
--html-report {env:MYPYHTML}.py3.{envname} \
|
||||||
{posargs:{env:SSHAUDIT}}
|
{posargs:{env:SSHAUDIT}}
|
||||||
|
|
||||||
@ -86,24 +86,6 @@ commands =
|
|||||||
print(b'\n'.join(l).decode('utf-8')); \
|
print(b'\n'.join(l).decode('utf-8')); \
|
||||||
sys.exit(1 if len(l) > 0 else 0)"
|
sys.exit(1 if len(l) > 0 else 0)"
|
||||||
|
|
||||||
|
|
||||||
[mypy]
|
|
||||||
ignore_missing_imports = False
|
|
||||||
follow_imports = normal
|
|
||||||
disallow_incomplete_defs = True
|
|
||||||
disallow_untyped_calls = True
|
|
||||||
disallow_untyped_decorators = True
|
|
||||||
disallow_untyped_defs = True
|
|
||||||
check_untyped_defs = True
|
|
||||||
disallow_subclassing_any = True
|
|
||||||
warn_redundant_casts = True
|
|
||||||
warn_return_any = True
|
|
||||||
warn_unreachable = True
|
|
||||||
warn_unused_ignores = True
|
|
||||||
strict_optional = True
|
|
||||||
strict_equality = True
|
|
||||||
strict = True
|
|
||||||
|
|
||||||
[pylint]
|
[pylint]
|
||||||
reports = no
|
reports = no
|
||||||
#output-format = colorized
|
#output-format = colorized
|
||||||
|
Loading…
Reference in New Issue
Block a user