forked from DemocracyClub/yournextrepresentative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
46 lines (42 loc) · 791 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
[tool.ruff]
line-length = 80
lint.ignore = ["E501"]
lint.extend-select = [
"I",
"C4",
"SIM",
"Q003",
"RET",
]
extend-exclude = ["ynr/settings/local.py"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"@abstractmethod"
]
[tool.pytest.ini_options]
norecursedirs =[
"ynr/static",
"ynr/media",
"deploy",
".aws-sam",
".ruff-cache",
"locale",
".git",
"data",
"docs",
"templates",
".download-cache",
"__pycache__",
]
DJANGO_SETTINGS_MODULE = "ynr.settings.testing"
addopts =[
"--ignore=*/__pycache__",
"--ignore=.*",
"--ignore=.download-cache",
"--ignore=democracy_club/settings/local.py",
"--ignore=lib",
"--ruff",
]
FAIL_INVALID_TEMPLATE_VARS = 1
env = "RUN_ENV=test"