generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
56 lines (51 loc) · 876 Bytes
/
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
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
omit = [
".venv/*",
"sacro/__main__.py",
"sacro/asgi.py",
"sacro/middleware.py",
]
source = [
"sacro",
"tests",
]
[tool.coverage.report]
fail_under = 100
skip_covered = true
show_missing = true
[tool.coverage.html]
show_contexts = true
[tool.pytest.ini_options]
addopts = "--ignore=./build"
DJANGO_SETTINGS_MODULE = "sacro.settings"
[tool.ruff]
line-length = 88
exclude = [
".direnv",
".git",
".github",
".ipynb_checkpoints",
".pytest_cache",
".venv",
"__pycache__",
"docker",
"htmlcov",
"venv",
"data",
]
extend-select = [
"A", # flake8-builtins
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"UP", # pyupgrade
"W", # pycodestyle warning
]
extend-ignore = [
"E501",
"E731",
]
[tool.ruff.isort]
lines-after-imports = 2