perfect test

This commit is contained in:
long2ice
2020-05-20 18:42:13 +08:00
parent 6d92aec4b1
commit f5e5d24855
28 changed files with 527 additions and 172 deletions

View File

@@ -14,5 +14,34 @@ force_grid_wrap=0
use_parentheses=True
line_length=100
[tool:pytest]
addopts = -n auto --cov=tortoise --tb=native -q
[mypy]
pretty = True
ignore_missing_imports = True
check_untyped_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
disallow_untyped_decorators = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_return_any = False
warn_unused_configs = True
warn_unreachable = True
allow_redefinition = True
strict_equality = True
show_error_context = True
[mypy-tests.*]
check_untyped_defs = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
warn_unreachable = False
[mypy-conftest]
disallow_untyped_defs = False