-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (70 loc) · 1.95 KB
/
pyproject.toml
File metadata and controls
82 lines (70 loc) · 1.95 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
[project]
name = "{{project-name}}"
version = "0.1.0"
description = "{{project-description}}"
requires-python = ">={{python-version}}"
dependencies = []
[dependency-groups]
dev = [
"mypy>=1.13.0",
"pylint>=3.3.0",
"ruff>=0.9.0",
"pre-commit>=4.0.0",
"codespell>=2.4.0",
]
[tool.uv]
package = false
# ---------------------------------------------------------------------------
# Codespell
# ---------------------------------------------------------------------------
[tool.codespell]
ignore-words-list = "astroid"
# ---------------------------------------------------------------------------
# Ruff
# ---------------------------------------------------------------------------
[tool.ruff]
target-version = "py312"
line-length = 119
exclude = ["build/", "dist/", ".venv/", ".mypy_cache/", ".ruff_cache/", ".pytest_cache/"]
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "RUF"]
ignore = ["E501"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
# ---------------------------------------------------------------------------
# MyPy
# ---------------------------------------------------------------------------
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
strict = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
pretty = true
show_error_codes = true
# ---------------------------------------------------------------------------
# Pylint
# ---------------------------------------------------------------------------
[tool.pylint.main]
load-plugins = ["pylint.extensions.mccabe"]
fail-under = 10
[tool.pylint."MESSAGES CONTROL"]
disable = ["line-too-long"]
[tool.pylint.design]
max-args = 5
max-locals = 15
max-branches = 10
max-returns = 5
max-statements = 60
max-complexity = 10
[tool.pylint.similarities]
min-similarity-lines = 6
ignore-comments = true
ignore-docstrings = true
ignore-imports = true
ignore-signatures = true