-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
114 lines (105 loc) · 2.55 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "EveryElection"
version = "0.0.0"
description = "For recording every election in the UK"
readme = "README.md"
requires-python = "==3.12.*"
dependencies = [
"beautifulsoup4==4.12.3",
"boto3==1.35.54",
"botocore==1.35.54",
"commitment==3.0.1",
"Django==4.2.16",
"django-cors-headers==4.6.0",
"django-extensions==3.2.3",
"django-filter==24.3",
"django-formtools==2.3",
"django-localflavor==4.0",
"django-middleware-global-request==0.3.5",
"django-model-utils==5.0.0",
"django-storages==1.14.4",
"djangorestframework==3.15.2",
"djangorestframework-gis==1.1",
"djangorestframework-jsonp==1.0.2",
"eco-parser==0.2.0",
"geojson==3.1.0",
"psutil==6.0.0",
"psycopg-binary==3.2.3",
"rapidfuzz==3.10.1",
"requests==2.32.3",
"retry2==0.9.5",
"scrapy==2.11.2",
"sqlparse==0.5.1",
"uk-election-ids==0.9.1",
"uk-election-timetables==4.1.0",
"uk-geo-utils==0.12.0",
"django-pipeline==3.1.0",
"django-dotenv==1.4.2",
"dc_design_system @ https://github.com/DemocracyClub/design-system/archive/refs/tags/0.5.0.zip",
"dc_django_utils @ git+https://github.com/DemocracyClub/[email protected]",
]
[dependency-groups]
cdk = [
"aws-cdk-lib==2.160.0",
"aws-cdk.aws-lambda-python-alpha==2.160.0a0",
"constructs==10.0.0",
"diagrams==0.23.3",
"pyyaml==6.0.2",
]
production = [
"gunicorn==23.0.0",
"sentry-sdk==2.14.0",
"gevent==24.10.3",
]
dev = [
"django-debug-toolbar==4.4.6",
"pytest==7.4.0",
"pytest-django==4.5.2",
"pytest-cov==5.0.0",
"pytest-freezegun==0.4.2",
"factory-boy==3.3.1",
"vcrpy==6.0.1",
"pytest-xdist==3.6.1",
"safety==3.2.7",
"ruff==0.2.2",
"djhtml==3.0.6",
"pytest-ruff==0.3.2",
"playwright==1.48.0",
"pytest-playwright==0.4.2",
"moto==5.0.9"
]
[tool.uv]
# safety depends on a pre-release version of dparse
prerelease = "allow"
package = false
[tool.ruff]
line-length = 80
ignore = ["E501"]
extend-exclude = ["every_election/settings/local.py"]
extend-select = [
"I",
"C4",
"SIM",
"Q003",
"RET",
]
[tool.pytest.ini_options]
norecursedirs = [
"node_modules",
"src",
"every_election/static_root",
"every_election/static",
".aws-sam",
".ruff-cache",
".circleci",
]
DJANGO_SETTINGS_MODULE = "every_election.settings.testing"
addopts = [
"--ignore=*/__pycache__",
"--ignore=.*",
"--ignore=.download-cache",
"--ignore=every_election/settings/local.py",
"--ignore=lib",
"--ruff",
"--ruff-format",
]