-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
53 lines (51 loc) · 1.16 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
[flake8]
statistics = False
inline-quotes = single
max-line-length = 120
max-expression-complexity = 10
max-complexity = 10
ban-relative-imports = parents
nested-classes-whitelist = Config, Meta
docstring_style=reStructuredText
exclude =
tests/*,
./.git,
./venv,
ignore =
; use isort instead
I,
; use black style
E203, W
G004,
VNE003,
; conflict with fastapi di
B008,
per-file-ignores =
; too complex queries
./app/tests/*: TAE001, S101, S311
tests/*/factories/*: S5720
app/main.py: E402
[mypy]
# Mypy configuration:
# https://mypy.readthedocs.io/en/latest/config_file.html
python_version = 3.10
allow_redefinition = False
check_untyped_defs = True
disallow_untyped_decorators = False
disallow_any_explicit = False
disallow_any_generics = True
disallow_untyped_calls = True
disallow_untyped_defs = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = False
local_partial_types = True
strict_optional = True
strict_equality = True
show_error_codes = True
no_implicit_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_no_return = True