-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (69 loc) · 1.58 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[project]
name = "reports"
description = "reports"
readme = "README.md"
authors = [{name = "OpenSAFELY", email = "[email protected]"}]
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
requires-python = ">=3.12"
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
omit = [
".direnv/*",
".venv/*",
"reports/asgi.py",
"reports/settings.py",
"reports/wsgi.py",
"services/sentry.py",
"gateway/migrations/*",
"reports/migrations/*",
"manage.py",
]
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = true
[tool.coverage.html]
show_contexts = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "reports.settings"
env = [
"SECRET_KEY=12345",
"REQUESTS_CACHE_NAME=test_cache",
"ASSETS_DEV_MODE=True",
]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning:marshmallow",
"ignore:distutils Version classes are deprecated:DeprecationWarning:pytest_freezegun",
]
[tool.ruff]
line-length = 88
exclude = [
".direnv",
".git",
".github",
".ipynb_checkpoints",
".pytest_cache",
".venv",
"__pycache__",
"docker",
"htmlcov",
"venv",
]
lint.extend-select = [
"A", # flake8-builtins
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"UP", # pyupgrade
"W", # pycodestyle warning
]
lint.extend-ignore = [
"A005", # ignore stdlib-module-shadowing. Would need to re-name services.logging.
"E501", # ignore line-length. We judge case-by-case.
]
[tool.ruff.lint.isort]
lines-after-imports = 2