-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
74 lines (62 loc) · 1.91 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
[tool.poetry]
name = "infra"
version = "2.0.0"
description = "Infrastructure for Python Discord"
authors = ["Python Discord <[email protected]>"]
license = "MIT"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = ">3.11,<4.0"
pre-commit = "3.8.0"
ruff = "0.6.5"
taskipy = "1.13.0"
[tool.poetry.group.ansible.dependencies]
ansible-core = "^2.17.0"
ansible-lint = { version = "24.9.0", markers = "platform_system != 'Windows'" }
dnspython = "2.6.1"
[tool.poetry.group.dns.dependencies]
octodns = "^1.8.0"
octodns-cloudflare = "^0.0.7"
[tool.poetry.group.docs.dependencies]
mkdocs-material = {extras = ["imaging"], version = "^9.5.31"}
mkdocs-glightbox = "^0.4.0"
mkdocs-git-committers-plugin-2 = "^2.3.0"
mkdocs-git-revision-date-localized-plugin = "^1.2.6"
[tool.taskipy.tasks]
lint = "pre-commit run --all-files"
precommit = "pre-commit install"
serve-docs = "cd docs && mkdocs serve"
build-docs = "cd docs && mkdocs build"
[tool.ruff]
target-version = "py311"
extend-exclude = [".cache"]
line-length = 120
unsafe-fixes = 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", "RUF012", "RUF015",
"S311",
"SIM102", "SIM108",
# Docs
"A001", "INP001",
# Rules suggested to be ignored when using ruff format
"COM812", "COM819", "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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"