-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (94 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (94 loc) · 2.35 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[project]
name = "repo-setup-python"
version = "1.0.0"
description = "Skeleton setup for a repository that uses Python invoke tasks, reusable modules, and AI Copilot prompts and instructions."
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
]
requires-python = ">=3.14"
dependencies = [
"actionlint-py~=1.7.12.24",
"invoke~=3.0.3",
"pylint~=4.0.6",
"pyyaml~=6.0.3",
"ruff~=0.15.22",
"tomlkit~=0.15.1",
"yamllint~=1.38.0",
]
[tool.setuptools]
packages = []
[project.urls]
homepage = "https://github.com/LevonBecker/template_python"
repository = "https://github.com/LevonBecker/template_python"
[tool.ruff]
line-length = 120
target-version = "py314"
extend-exclude = ["addons"]
[tool.ruff.lint]
select = ["PL", "E", "W", "F", "I", "B", "A", "C4", "N", "UP", "T10", "EXE", "COM819", "C", "Q"]
ignore = ["E501", "PLR2004"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.mccabe]
max-complexity = 20 # 5 = default, 12 = previous
[tool.ruff.lint.pylint]
max-branches = 20 # default = 12, previous = 15
max-args = 15 # default = 5
max-statements = 75 # default = 50
max-returns = 10 # default = 6
max-nested-blocks = 10 # default = 5
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.pylint.main]
py-version = "3.14"
fail-under = 10
ignore = ["CVS"]
ignore-paths = [
"^env/.*$",
"^.venv/.*$",
"^venv/.*$",
"^.ruff_cache/.*$",
"^tmp/.*$",
".*__pycache__.*$",
"^addons/.*$",
]
[tool.pylint.format]
max-line-length = 100
[tool.pylint.messages_control]
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-string",
"use-implicit-booleaness-not-comparison-to-zero",
"missing-module-docstring",
"missing-function-docstring",
"fixme",
"line-too-long",
"duplicate-code",
"relative-beyond-top-level",
"invalid-name",
"logging-fstring-interpolation",
"import-error",
]
[tool.pylint.design]
max-args = 15
max-branches = 20
max-locals = 20
max-positional-arguments = 15
max-public-methods = 20
max-returns = 10
max-statements = 75
[tool.pylint.refactoring]
max-nested-blocks = 10