-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (78 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
89 lines (78 loc) · 1.91 KB
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
[project]
name = "discord-guild-configurator"
version = "0.1.0"
description = "Discord guild configuration manager"
readme = "README.md"
authors = [
{ name = "Niklas Mertsch", email = "niklasmertsch@web.de" },
]
requires-python = ">=3.11"
dependencies = [
"discord-py>=2.7.1,<3",
"pydantic>=2.13.3,<3",
]
[project.scripts]
discord-guild-configurator = "discord_guild_configurator.main:main"
[build-system]
requires = ["uv_build>=0.11.9,<0.12.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"prek>=0.3.13",
"ruff>=0.15.12",
"ty>=0.0.34",
]
[tool.ty.terminal]
output-format = "concise"
[tool.ty.rules]
all = "error"
[tool.ruff]
line-length = 100
unsafe-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# incompatible with `ruff format`
"COM812",
# (f-)string in exception and logging
"EM101",
"EM102",
"TRY003",
"G004",
# missing docstrings
"D100",
"D101",
"D102",
"D103",
"D104",
"D107",
]
fixable = [
"TC", # type checking
"ANN", # type annotations
"F401", # unused imports
"I001", # unsorted imports
"UP", # pyupgrade
"PLR1730", # if min/max over if else
"RET505", # superfluous else-return
"PLR5501", # collapse else-if into elif
"F541", # superfluous f-string prefix
"F841", # unused variable
"B007", # unused loop variable
"PIE790", # unnecessary pass
"Q003", # change single/double quotes
]
[tool.ruff.lint.per-file-ignores]
"configs/*" = [
"INP001", # no `__init__.py`
]
"scripts/*" = [
"INP001", # no `__init__.py`
"T201", # print
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"pydantic.BaseModel" = { msg = "Use discord_build_configurator._utils.StrictBaseModel instead" }
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["discord_guild_configurator._utils.StrictBaseModel"]