-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.cfg
54 lines (52 loc) · 2.1 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
[flake8]
enable-extensions = G
exclude =
.git
.venv
.tox
ignore =
A003 ; 'id' is a python builtin, consider renaming the class attribute
A001 ; "id" is a python builtin and is being shadowed, consider renaming the variable
W503 ; line break before binary operator
N805 ; first argument of a method should be named 'self'
PT004 ; fixture does not return anything, add leading underscore
D100 ; Missing docstring in public module
D102 ; Missing docstring in public method
D103 ; Missing docstring in public function
D104 ; Missing docstring in public package
D105 ; Missing docstring in magic method
D106 ; Missing docstring in public nested class
D107 ; Missing docstring in __init__
D210 ; No whitespaces allowed surrounding docstring text
D401 ; First line should be in imperative mood; try rephrasing
C408 ; Unnecessary dict call - rewrite as a literal
I900 ; not listed as a requirement
S101 ; Use of assert detected. The enclosed code will be removed when compiling to optimised byte code
S106 ; Possible hardcoded password
B009 ; Do not call getattr with a constant attribute value, it is not any safer than normal property access
B010 ; Do not call setattr with a constant attribute value, it is not any safer than normal property access
S603 ; subprocess call - check for execution of untrusted input
S404 ; Consider possible security implications associated with subprocess module
N818 ; exception name should be named with an Error suffix
I004 ; isort found an unexpected blank line in imports
max-complexity = 8
max-annotations-complexity = 4
max-line-length = 120
show-source = true
[mypy]
plugins = pydantic.mypy, sqlalchemy.ext.mypy.plugin
python_version = 3.11
check_untyped_defs = true
strict_optional = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
warn_unused_ignores = true
warn_return_any = true
warn_redundant_casts = true
warn_unreachable = true
show_error_codes = true
show_column_numbers = true
pretty = true