-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
66 lines (60 loc) · 1.74 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
[tool.poetry]
name = "find-moj-data"
version = "0.1.0"
description = ""
authors = ["Mitch Dawson <Mitchell.Dawson@justice.gov.uk>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^5.1"
django-prometheus = "^2.3.1"
pyyaml = "^6.0.2"
gunicorn = "^23.0.0"
whitenoise = "^6.7.0"
markdown = "^3.7"
python-dotenv = "^1.0.1"
markdown-headdown = "^0.1.3"
nltk = "^3.9.1"
sentry-sdk = { extras = ["django"], version = "^2.13.0" }
ministryofjustice-data-platform-catalogue = { path = "lib/datahub-client", develop = true }
django-azure-auth = "2.0.2"
django-waffle = "^4.1.0"
psycopg = "^3.2.2"
psycopg-binary = "^3.2.2"
django-debug-toolbar = "^4.4.6"
redis = {extras = ["hiredis"], version = "^5.0.8"}
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
pre-commit = "^3.8.0"
selenium = "~=4.25.0"
flake8 = ">=6.1.0"
pytest-django = "^4.9.0"
pytest-cov = "^5.0.0"
faker = "^29.0.0"
isort = "^5.13.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings"
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"datahub: marks tests that query Datahub rather than mocking",
]
testpaths = ["tests", "lib/data_platform_catalogue/tests"]
[tool.isort]
profile = "black"
[tool.flake8]
per-file-ignores = [
'*/test_datahub_client.py:E501',
'*/test_graphql_helpers.py:E501',
'*/test_search.py:E501',
'*/test_integration_with_datahub_server.py:E501,F401',
'*/conftest.py:E501,F401',
]
ignore = ['E203', 'E266', 'W503', 'F403']
exclude = ".git,.mypy_cache,.pytest_cache,build,dist"
max-line-length = 89
max-complexity = 18
select = "B,C,E,F,W,T4,B9"