-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
58 lines (54 loc) · 1.99 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
[flake8]
enable-extensions = G
exclude =
.git
.venv
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
PT011 ; set the match parameter in pytest.raises(ValueError)
PT012 ; pytest.raises() block should contain a single simple statement
PT019 ; fixture ... without value is injected as parameter, use @pytest.mark.usefixtures instead
D100 ; Missing docstring in public module
D101 ; Missing docstring in public class
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__
D205 ; 1 blank line required between summary line and description
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
E203 ; whitespace before ':'
PT018 ; assertion should be broken down into multiple parts
PT019 ; fixture <FIXTURE> without value is injected as parameter
max-complexity = 8
max-line-length = 120
show-source = true
[mypy]
plugins = pydantic.mypy
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
show_error_codes = true
show_column_numbers = true
pretty = True
[isort]
balanced_wrapping = true
default_section = THIRDPARTY
include_trailing_comma=True
known_first_party = cli, manager
line_length = 120
multi_line_output = 3
not_skip = __init__.py