This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
88 lines (81 loc) · 2.79 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
[mypy]
python_version = 3.9
# https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin
plugins = pydantic.mypy
disallow_untyped_defs = False
ignore_missing_imports = True
[isort]
line_length = 100
known_first_party = app
known_third_party = fastapi,pydantic,starlette
sections = FUTURE, STDLIB, THIRDPARTY, FIRSTPARTY, LOCALFOLDER
include_trailing_comma = True
multi_line_output = 3
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
balanced_wrapping = true
lines_after_imports = 2
lines_between_sections = 1
skip=.git,.vscode,env,.env,.venv,.pytest_cache,.mypy_cache,__init__.py
[black]
line_length = 100
multi_line_output = 3
include_trailing_comma = true
[flake8]
exclude =
.git, .vscode, env, .env, .venv, .pytest_cache, .mypy_cache,
**/__init__.py, migrations,
ignore =
B008 # Do not perform function calls in argument defaults
D100 # Missing docstring in public module
D101 # Missing docstring in public class
D102 # Missing docstring in public method
D103 # Missing docstring in public function
D105 # Missing docstring in magic method
D106 # Missing docstring in public nested class
D106 # Missing docstring in public nested class
D107 # Missing docstring in __init__
D202 # No blank lines allowed after function docstring
D205 # 1 blank line required between summary line and description
D301 # Use r""" if any backslashes in a docstring
D400 # First line should end with a period
D413 # Missing blank line after last section
DAR000 # Attribute' object has no attribute 'id'
DAR101 # Missing parameter(s) in Docstring
DAR201 # Missing "Returns" in Docstring
DAR301 # Missing "Yields" in Docstring
DAR401 # Missing exception(s) in Raises section
E722 # Do not use bare 'except'
E203 # whitespace before ':'
E731 # Do not assign a lambda expression
I101 # Missing parameter(s)
I201 # Missing "Returns"
I401 # Missing exception(s) in Raises section
S001 # Error parsing type params
W503 # Line break occurred after a binary operator (opposite of W504)
max-complexity = 18
max-line-length = 100
[bandit]
targets: app
[tool:pytest]
python_files = test*.py
addopts = -ra -v -x
--xdoc
--cov-config=setup.cfg
--cov=app
--cov-report=term-missing:skip-covered
--cov-fail-under=10
--cov-report=html
--cov-report=xml
# coverage.py
[coverage:run]
branch = true
omit = */tests/*
*/migrations/*
[coverage:report]
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.: