forked from E-catalog/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
71 lines (62 loc) · 2.08 KB
/
setup.cfg
File metadata and controls
71 lines (62 loc) · 2.08 KB
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
[flake8]
exclude = tests/*
ignore =
D100, # missing module docstring
D101, # missing public class docstring
D102, # missing docstring in a public method
D103, # missing docstring in a public function
D104, # missing docstring in a public package
D105, # missing docstring in a magic method
D106, # missing docstring in a public nested class
D107, # missing docstring in an init method
DAR101, # missing parameter in a docstring
DAR201, # missing returns in docstring
S104, # TODO: temporary disabled possible binding to all interfaces
WPS110, # wrong variable name
WPS115, # false-positive: upper case constants in enums
WPS125, # buildit shadowing
WPS201, # found module with too many imports
WPS202, # TODO: temporary disabled too many module members
WPS214, # disable: too many methods
WPS226, # disable: found string constant overuse
WPS229, # too long try body
WPS305, # disable: f-string prohibited
WPS306, # disable: class without a base class
WPS322, # false-positive: multiline comment
WPS323, # false-positive: %% sign in logging formatting
WPS410, # disable: all at init py not allowed
WPS412, # false-positive: init py with logic
WPS428, # ...
WPS430, # false-positive: route + nested function in flask app
WPS431, # nested classes
WPS462, # ...
WPS531, # false-positive: simplified if return
max-arguments = 16
max-module-members = 12
max-local-variables = 9
max-line-length = 99
[tool:isort]
known_first_party=tests
multi_line_output=3
include_trailing_comma=True
line_length = 99
[mypy]
plugins = pydantic.mypy
warn_unreachable = True
follow_imports = silent
strict_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
no_implicit_reexport = True
disallow_any_generics = True
check_untyped_defs = True
disallow_untyped_defs = False
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[mypy-flask_sqlalchemy.*]
ignore_missing_imports = True
[mypy-sqlalchemy.*]
ignore_missing_imports = True