-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
87 lines (74 loc) · 2.25 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
[tool.poetry]
name = "king-arthur"
version = "1.0.0"
description = "King Arthur is a helper for the Python Discord DevOps team."
authors = ["Joe Banks <joe@jb3.dev>", "Chris Lovering <chris@jb3.dev>"]
license = "MIT"
package-mode = false
[tool.poetry.dependencies]
python = "3.12.*"
# See https://bot-core.pythondiscord.com/ for docs.
pydis-core = "11.5.1"
beautifulsoup4 = "4.12.3"
pydantic = "2.10.4"
pydantic-settings = "2.7.0"
loguru = "0.7.3"
kubernetes_asyncio = "32.0.0"
tabulate = { extras = ["widechars"], version = "0.9.0" }
jishaku = "2.6.0"
sentry-sdk = "2.19.2"
humanize = "4.11.0"
wand = "0.6.13"
python-freeipa = "1.0.8" # 1.0.9 adds gssapi which currently can't be built in our image
python-keycloak = "5.1.1"
[tool.poetry.dev-dependencies]
pre-commit = "4.0.1"
ruff = "0.8.4"
taskipy = "1.14.1"
[tool.poetry.group.ldap]
optional = true
[tool.poetry.group.ldap.dependencies]
bonsai = "^1.5.3"
[tool.taskipy.tasks]
start = "python -m arthur"
lint = "pre-commit run --all-files"
format = "ruff format arthur"
precommit = "pre-commit install"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py312"
extend-exclude = [".cache"]
line-length = 100
unsafe-fixes = true
output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN002", "ANN003", "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",
"SIM102", "SIM108",
"PD",
"PLR0913", "PLR0917", "PLR6301",
"DTZ003",
# Rules suggested to be ignored when using ruff format
"COM812", "D206", "E111", "E114", "E117", "E501", "ISC001", "Q000", "Q001", "Q002", "Q003", "W191",
]
[tool.ruff.lint.per-file-ignores]
# McCabe is not supported on Linux systems
"arthur/apis/systems/*.py" = ["C901", "PLR0912", "PERF401", "PLR2004"]
# Bug in complexity calculation, similar to the above
"arthur/exts/systems/system_information.py" = ["C901", "PLR2004"]
[tool.ruff.lint.isort]
order-by-type = false
case-sensitive = true
combine-as-imports = true