-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
151 lines (142 loc) · 3.89 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[tool.poetry]
name = "digital-workspace-v2"
version = "1.0.0"
description = ""
authors = ["Live Services <live.services@digital.trade.gov.uk>"]
license = "MIT"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
# Django
django = "^5.1"
django-environ = "^0.10.0"
django-settings-export = "^1.2.1"
# TODO: Set django-simple-history to the next release after 3.4.0 (when released)
django-simple-history = { git = "https://github.com/uktrade/django-simple-history.git", rev = "29108a5" }
django-storages = "^1.13.2"
django-webpack-loader = "^3.0"
djangorestframework = "^3.15.2"
crispy-forms-gds = "^0.2.6"
# DIT Django
django-audit-log-middleware = "^0.0.4"
django-hawk-drf = "^1.1.0"
django-chunk-upload-handlers = "^0.0.15"
django-feedback-govuk = "^0.2.10"
django_log_formatter_ecs = "^0.0.5"
django-staff-sso-client = "^4.2"
notifications-python-client = "^8.2"
# Wagtail
wagtail = "^6.3"
wagtailmedia = "^0.14.2"
wagtailmenus = "^3.1.8"
wagtail-draftail-anchors = "^0.6.0"
wagtail-adminsortable = { git = "https://github.com/uktrade/wagtail-admin-sortable.git", tag = "v0.4.0" }
# OpenSearch
elasticsearch = "<7.14.0" # highest version for OpenSearch support
elasticsearch-dsl = "^7.4.0"
django-elasticsearch-dsl = "^7.4"
# Peoplefinder
markdown = "^3.5.1"
requests-hawk = "^1.1.1"
pillow = "^10.2.0"
# Operational
sentry-sdk = "^2.8.0"
psycopg2 = "^2.9.6"
whitenoise = "^6.4.0"
celery = "^5.2.7"
redis = "^4.5.4"
atoma = "^0.0.17"
bleach = "^6.0.0"
elastic-apm = "^6.15.1"
boto3 = "^1.26.115"
pyjwt = { extras = ["crypto"], version = "^2.6.0" }
wagtail-generic-chooser = "^0.6"
wagtail-modeladmin = "^2.0.0"
dj-database-url = "^2.1.0"
django-celery-beat = "^2.5.0"
django-waffle = "^4.0.0"
django-log-formatter-asim = "^0.0.6"
dbt-copilot-python = "^0.1.3"
opentelemetry-distro = "^0.43b0"
opentelemetry-exporter-otlp = "^1.22.0"
opentelemetry-instrumentation-wsgi = "^0.43b0"
opentelemetry-propagator-aws-xray = "^1.0.1"
opentelemetry-sdk-extension-aws = "^2.0.1"
wagtail-orderable = "^1.2.0"
django-filter = "^24.3"
django-csp = "^3.8"
icalendar = "^6.0.1"
granian = "^1.6.3"
[tool.poetry.group.dev.dependencies]
# Linters
black = "^24.4.2"
djlint = "^1.23.2"
ruff = "^0.4.4"
# Testing
pytest = "^7.3.1"
pytest-django = "^4.5.2"
pytest-playwright = "^0.4.3"
coverage = "^7.2.3"
faker = "^18.4.0"
factory-boy = "^3.2.1"
wagtail-factories = "^4.0.0"
# Util
bpython = "^0.24"
django-extensions = "^3.2.1"
django-silk = "^5.0.4"
django-debug-toolbar = "^4.4.6"
werkzeug = "^3.0.6"
blessings = "^1.7"
pytest-mock = "^3.11.1"
pytest-freezer = "^0.4.8"
playwright = "^1.36"
snakeviz = "^2.2.0"
debugpy = "*"
[tool.poetry.group.docs.dependencies]
mkdocs-awesome-pages-plugin = "^2.8.0"
mkdocs-material = "^9.1.5"
mkdocs-minify-plugin = "^0.6.4"
mkdocs-redirects = "^1.2.0"
mkdocstrings-python = "^0.9.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
python_files = "tests.py test_*.py *_tests.py"
addopts = "--disable-warnings --ds=config.settings.test --base-url http://localhost:8000 --liveserver=0.0.0.0:8000"
DJANGO_SETTINGS_MODULE = "config.settings.test"
markers = [
"e2e: Mark the test as using Playwright.",
"opensearch: Mark the test as using OpenSearch.",
]
[tool.coverage.run]
omit = ["*/migrations/*", "*/test/*", "e2e_tests/*"]
[tool.ruff]
src = ["src"]
lint.extend-select = ["B", "S", "I"]
lint.ignore = ["B904", "E501", "N818", "S101"]
extend-exclude = [
"manage.py",
"*/migrations/*",
"# Not actually Python",
"node_modules/",
"assets/",
"media/",
"static/",
"*/test/*",
".venv/",
"bin/",
"hawk-api-access-test.py",
".pythonrc.py",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.djlint]
extension = "html"
profile = "django"
ignore = "T002,H006,H017,H023"
preserve_blank_lines = true
extend_exclude = "htmlcov,staticfiles,static,node_modules"
custom_blocks = "flag"