generated from rochacbruno/flask-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
60 lines (55 loc) · 1 KB
/
pyproject.toml
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
[tool.ruff]
line-length = 80
exclude = [
".git",
"__pycache__",
"tests/old",
"cookgpt/old",
"migrations/*"
]
[tool.black]
line-length = 79
exclude = """
(
\\.git
| \\.mypy_cache
| __pycache__
| tests/old/.*
| cookgpt/old/.*
| migrations
)
"""
[tool.mypy]
ignore_missing_imports = true
warn_unused_configs = true
exclude = [
"\\.git",
"\\.mypy_cache",
"__pycache__",
"migrations/.*",
"test_streaming.py"
]
[tool.pytest.ini_options]
addopts = "-v -l --tb=short"
console_output_style = "progress"
testpaths = "tests"
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@overload",
]
omit = [
"migrations/*",
"cookgpt/ext/cors.py",
"cookgpt/ext/admin.py",
"cookgpt/ext/database.py",
"cookgpt/logging.py",
"cookgpt/sentry.py",
"cookgpt/auth/models/whatsapp.py",
]