-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (61 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (61 loc) · 1.55 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
72
73
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
fail_under = 90
[tool.coverage.run]
branch = true
omit = [
"/venv/*",
"/scripts/*",
"*tests*",
"*/migrations/*",
"*asgi*",
"*wsgi*",
"/migrations/*",
"migrate.py",
"*/shared/migrations/*",
]
[tool.isort]
multi_line_output = 3
line_length = 120
atomic = true
include_trailing_comma = true
use_parentheses = true
skip = ["venv", ".venv", ".git", "scripts", "devtools"]
[tool.black]
line-length = 120
skip-string-normalization = true
[tool.flake8]
exclude = ["venv*", ".venv", ".git", "devtools"]
ignore = ['E231', 'E241', 'F403', 'E704', 'W503']
per-file-ignores = ['__init__.py:F401']
max-line-length = 120
count = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
# https://stackoverflow.com/a/63498715/6039697
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = true
testpaths = [
"tests"
]
[tool.pylint.messages_control]
disable = ["C0103", "C0114", "C0115", "C0116", "R0903"]
[tool.mypy]
plugins = "pydantic.mypy"
show_error_codes = true
disable_error_code = "valid-type,misc,import-untyped,annotation-unchecked"
exclude = ["venv*", ".venv", ".git", "devtools"]
[[tool.mypy.overrides]]
module = "asyncache.*"
ignore_missing_imports = true
[tool.bandit]
skips = ["B104", "B601"]
[tool.bandit.assert_used] # B101 semantically
skips = ['*_test.py', '*test_*.py']