-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (97 loc) · 2.41 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
[tool.poetry]
name = "find-business-regulations"
version = "0.1.0"
description = "Find business regulations"
authors = ["Greg Barnes <greg.barnes@digital.trade.gov.uk>"]
readme = "README.md"
packages = [{ include = "fbr" }]
[tool.poetry.dependencies]
python-environ = "^0.4.54"
python = "^3.12"
django = "^4.2.16"
django-log-formatter-asim = "0.0.4"
dj-database-url = "^2.2.0"
psycopg = {extras = ["c"], version = "^3.2.1"}
whitenoise = {extras = ["brotli"], version = "^6.6.0"}
django-webpack-loader = "^3.1.0"
dbt-copilot-python = "^0.2.1"
sentry-sdk = "^2.9.0"
gunicorn = "^22.0.0"
requests = "^2.32.3"
psycopg2-binary = "^2.9.9"
jinja2 = "^3.1.4"
pandas = "^2.2.3"
djangorestframework = "^3.15"
grpcio = "^1.67.1"
psycopg-c = "3.2.3"
config = "^0.5.1"
utils = "^1.0.2"
celery = {extras = ["redis"], version = "^5.4.0"}
kombu = {extras = ["redis"], version = "^5.4.2"}
boto3 = "^1.35.71"
django-celery-beat = "^2.7.0"
django-environ = "^0.11.2"
redis = "^5.2.1"
bleach = "^6.2.0"
bs4 = "^0.0.2"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7.1"
black = "24.4.2"
isort = "5.13.2"
flake8 = "7.0.0"
mypy = "1.10.0"
detect-secrets = "^1.5.0"
pandas = "^2.2.2"
types-requests = "^2.32.0.20240914"
types-bleach = "^6.2.0.20241123"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.1"
pytest-django = "^4.8.0"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
playwright = "^1.45.0"
behave = "^1.2.6"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "fbr.settings"
xfail_strict=true
addopts = """
-rsxXw
--reuse-db --ignore=data_migration
--cov=fbr --cov-report=html --no-cov-on-fail
"""
markers = [
"slow: mark test as slow",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning",
]
[tool.coverage.run]
omit = [
"manage.py",
"fbr/config/*sgi.py",
"fbr/config/urls.py",
"fbr/config/settings/*.py",
"fbr/config/version.py",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.bandit]
exclude_dirs = ["fbr/tests"]
[tool.black]
line-length = 79
[tool.isort]
profile = "black"
sections = ["STDLIB", "THIRDPARTY", "DJANGO", "FIRSTPARTY", "LOCALFOLDER"]
known_django = "django"
known_first_party = ["config", "core", "search", "tests"]
lines_between_types = 1
[[tool.mypy.overrides]]
module = ["*.migrations.*"]
ignore_errors = true
[tool.flake8]
max-line-length = 79
max-complexity = 10
[tool.poetry.scripts]
rebuild-cache = "app.cache.manage_cache:rebuild_cache"