-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
125 lines (116 loc) · 2.72 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
[tool.ruff]
line-length = 120
target-version = 'py312'
[tool.poetry]
name = "redbox-root"
version = "0.4.0"
description = "RAG application that uses GenAI to chat with and summarise civil service documents"
authors = ["i.AI <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.12,<3.13"
django-staff-sso-client = "^4.3.0"
[tool.poetry.group.dev.dependencies]
bumpversion = "^0.6.0"
pytest = "^8.3.2"
pytest-env = "^1.1.1"
pytest-mock = "^3.14.0"
pytest-cov = "^5.0.0"
pytest-dotenv = "^0.5.2"
pytest-asyncio = "^0.23.8"
ruff = "^0.5.7"
bandit = "^1.7.9"
detect-secrets = "^1.5.0"
types-python-dateutil = "^2.9.0.20240315"
types-markdown = "^3.6.0.20240316"
types-pytz = "^2024.1.0.20240203"
boto3-stubs = {extras = ["essential"], version = "^1.34.160"}
moto = {extras = ["s3"], version = "^5.0.12"}
playwright = "^1.46"
pytest-playwright = "^0.5"
axe-playwright-python = "^0.1"
websockets = "^12.0"
python-jose = "^3.3.0"
httpx = "^0.27.0"
minio = "^7.2.7"
yarl = "^1.9.4"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocstrings = {extras = ["python"], version = "^0.25.2"}
mkdocs-material = "^9.5.31"
mkdocs-mermaid2-plugin = "^1.1.1"
markdown-mdantic = "^2.1.0"
pygments = "^2.18.0"
mkapi = "^2.1.0"
griffe-typingdoc = "^0.2.5"
mkdocs-git-revision-date-localized-plugin = "^1.2.5"
mkdocs-glightbox = "^0.4.0"
mkdocs-minify-plugin = "^0.8.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.format]
exclude = ["django_app/redbox_app/redbox_core/migrations/*.py"]
[tool.ruff.lint]
# Dribble in those we have commented out, asterisked ones first
select = [
"A",
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ARG",
"ASYNC",
"BLE",
"COM",
"DJ",
"DTZ",
"EM",
"EXE",
"FURB",
"ICN",
"INT",
"ISC",
"LOG",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"SLOT",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"YTT",
]
exclude = ["django_app/redbox_app/redbox_core/migrations/*.py", "out/*"]
ignore = ["COM812", "DJ001", "RET505", "RET508", "PLR0913", "ISC001"]
[tool.ruff.lint.isort]
known-first-party = ["redbox_app", "redbox", "core_api"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S106", "PLR0913", "PLR0915", "PLR2004", "TD003", "S311"]
"*/tests/*" = ["S101", "S106", "PLR0913", "PLR0915", "PLR2004", "TD003"]
"django_app/tests_playwright/*" = ["S101", "S106", "PLR0913", "PLR2004", "TD003"]
"worker/*" = ["B008"]
"redbox/*" = ["TCH003"]
"redbox/tests/*" = ["ARG001"]
"*/admin.py" = ["RUF012"]
"*/models.py" = ["RUF012"]