-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpyproject.toml
95 lines (90 loc) · 2.2 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[project]
name = "WhoCanIVoteFor"
version = "0.0.0"
description = "🗳 The source for https://whocanivotefor.co.uk/"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"django-filter==24.2",
"django==4.2.18",
"psycopg2-binary==2.9.9",
"requests==2.31.0",
"django-model-utils==4.3.1",
"markdown==3.5.1",
"django-localflavor==4.0",
"django-extensions==3.2.3",
"djangorestframework==3.14.0",
"icalendar==5.0.7",
"dc-django-utils",
"dc-logging-utils",
"djangorestframework-jsonp==1.0.2",
"feedparser==6.0.10",
"uk-election-timetables==4.2.3",
"uk-election-ids==0.9.1",
"django-dotenv==1.4.2",
"akismet==24.5.1",
"dc-design-system",
"boto3==1.36.11",
"django-middleware-global-request==0.3.5",
]
[tool.uv.sources]
dc-design-system = { git = "https://github.com/DemocracyClub/design-system.git", tag = "0.7.0" }
dc-django-utils = { git = "https://github.com/DemocracyClub/dc_django_utils.git", tag = "8.0.1" }
dc-logging-utils = { git = "https://github.com/DemocracyClub/dc_logging.git", tag = "1.1.0" }
[tool.uv]
package = false
[dependency-groups]
deploy = [
"django-redis==5.3.0",
"gevent<24.10.1",
"gunicorn[gevent]==22.0.0",
"sentry-sdk==1.27.1",
]
dev = [
"ipdb==0.13.13",
"pre-commit==4.0.1",
"pytest-django==4.9.0",
"pytest==8.3.4",
"pytest-cov==6.0.0",
"factory-boy==3.3.1",
"vcrpy==6.0.1",
"pytest-freezegun==0.4.2",
"pytest-mock==3.14.0",
"pytest-subtests==0.13.1",
"tomlkit==0.13.2",
"freezegun==1.2.2",
"django-debug-toolbar==4.3.0",
"djhtml==3.0.6",
"ruff==0.1.15",
"pytest-ruff==0.2.1",
"pytidylib==0.3.2",
]
[tool.ruff]
line-length = 80
lint.ignore = ["E501"]
lint.extend-select = [
"I",
"C4",
"SIM",
"Q003",
"RET",
]
extend-exclude = ["wcivf/settings/local.py"]
[tool.pytest.ini_options]
norecursedirs =[
"src",
"wcivf/static_root",
".aws-sam",
".ruff-cache",
".circleci",
]
DJANGO_SETTINGS_MODULE = "wcivf.settings.base"
addopts =[
"--ignore=*/__pycache__",
"--ignore=.*",
"--ignore=.download-cache",
"--ignore=wcivf/settings/local.py",
"--ignore=lib",
"--ruff",
"--ruff-format",
]