forked from tortoise/tortoise-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
78 lines (66 loc) · 1.81 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[flake8]
max-line-length = 100
exclude =
ignore = E501,W503,DAR101,DAR201,DAR402
per-file-ignores =
tortoise/__init__.py:F401
tortoise/fields/__init__.py:F401
tortoise/backends/base/client.py:DAR401,DAR202
tortoise/contrib/test/__init__.py:DAR401
[darglint]
docstring_style=sphinx
[isort]
known_third_party=aiosqlite,ciso8601,quart,sanic,starlette,uvicorn
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=100
[green]
no-skip-report= True
initializer = tortoise.contrib.test.env_initializer
finalizer = tortoise.contrib.test.finalizer
[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-examples.*]
check_untyped_defs = False
disallow_untyped_calls = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-tortoise.contrib.test.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-tortoise.contrib.sanic.*]
disallow_untyped_defs = False
[mypy-conftest]
disallow_untyped_defs = False
; TODO: Define connection type/protocol
[mypy-tortoise.backends.base.client]
disallow_untyped_defs = False
; TODO: Remove after dropping py3.6
[mypy-tortoise.contrib.quart.*]
disallow_untyped_decorators = False