This repository has been archived by the owner on Aug 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 627
/
setup.cfg
88 lines (69 loc) · 1.95 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
79
80
81
82
83
84
85
86
87
88
[coverage:report]
precision = 2
exclude_lines =
pragma: no cover
raise NotImplementedError
raise NotImplemented
[coverage:run]
source = app
branch = True
[mypy]
plugins = pydantic.mypy
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_any_generics = True
check_untyped_defs = True
disallow_untyped_defs = True
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[mypy-sqlalchemy.*]
ignore_missing_imports = True
[mypy-alembic.*]
ignore_missing_imports = True
[mypy-loguru.*]
ignore_missing_imports = True
[mypy-asyncpg.*]
ignore_missing_imports = True
[mypy-bcrypt.*]
ignore_missing_imports = True
[mypy-passlib.*]
ignore_missing_imports = True
[mypy-slugify.*]
ignore_missing_imports = True
[mypy-pypika.*]
ignore_missing_imports = True
[flake8]
format = wemake
max-line-length = 88
per-file-ignores =
# ignore error on builtin names for TypedTable classes, since just mapper for SQL table
app/db/queries/tables.py: WPS125,
# ignore black disabling in some places for queries building using pypika
app/db/repositories/*.py: E800,
app/api/dependencies/authentication.py: WPS201,
ignore =
# common errors:
# FastAPI architecture requires a lot of functions calls as default arguments, so ignore it here.
B008,
# docs are missing in this project.
D, RST
# WPS: 3xx
# IMO, but the obligation to specify the base class is redundant.
WPS306,
# WPS: 4xx
# FastAPI architecture requires a lot of complex calls as default arguments, so ignore it here.
WPS404,
# again, FastAPI DI architecture involves a lot of nested functions as DI providers.
WPS430,
# used for pypika operations
WPS465,
# WPS: 6xx
# pydantic defines models in dataclasses model style, but not supported by WPS.
WPS601,
no-accept-encodings = True
nested-classes-whitelist=Config
inline-quotes = double