-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
76 lines (68 loc) · 1.82 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
[tool.poetry]
name = "backend"
version = "0.1.0"
description = "Backend for Python Discord Forms"
authors = ["Joe Banks <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.12"
starlette = "^0.38.0"
nested_dict = "^1.61"
uvicorn = { extras = ["standard"], version = "^0.30.1" }
motor = "3.5.1"
python-dotenv = "^1.0.1"
pyjwt = "^2.8.0"
httpx = "^0.27.0"
pydantic = "^1.10.17"
spectree = "^1.2.10"
deepmerge = "^1.1.1"
sentry-sdk = "^2.7.1"
condorcet = "^0.1.1"
redis = "^5.0.7"
[tool.poetry.group.typing.dependencies]
types-redis = "^4.6.0.20240425"
[tool.poetry.group.dev.dependencies]
ruff = "^0.5.1"
pre-commit = "^3.7.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.ruff]
target-version = "py312"
extend-exclude = [".cache", "resources"]
line-length = 100
unsafe-fixes = true
preview = true
output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
"B904",
"C401", "C408",
"CPY001",
"D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301",
"D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417",
"E731",
"RET504",
"RUF005",
"S311", "S113", "S324",
"SIM102", "SIM108",
"PD",
"PLR0913", "PLR0917", "PLR6301", "PLR1702", "PLR0915", "PLR2004",
"PLR0912", "PLR0914", "PLR0911",
"DTZ003",
"INP001",
"D102",
"D103", "D103", "D101", "D106",
"C901",
"DTZ005",
"TRY004",
"N805",
# Rules suggested to be ignored when using ruff format
"COM812", "D206", "E111", "E114", "E117", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191",
]
[tool.ruff.lint.isort]
order-by-type = false
case-sensitive = true
combine-as-imports = true