Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (48 loc) · 1.58 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (48 loc) · 1.58 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
[project]
name = "apify-actions"
version = "0"
description = "Lint and type-check configuration for Python scripts in apify/actions."
requires-python = ">=3.14"
[dependency-groups]
dev = [
"rich~=15.0.0",
"ruff~=0.15.0",
"ty~=0.0.0",
"typer~=0.25.0",
]
[tool.uv]
# Supply-chain cooldown: only resolve versions published at least 7 days ago.
exclude-newer = "7 days"
package = false
[tool.ruff]
line-length = 120
include = ["**/*.py"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # May conflict with the formatter.
"D", # pydocstyle - docstring presence/formatting not enforced for this repo's small scripts.
"EM", # flake8-errmsg.
"G004", # Logging statement uses f-string.
"ISC001", # May conflict with the formatter.
"PLR0913", # Too many arguments in function definition.
"TD002", # Missing author in TODO.
"TRY003", # Avoid specifying long messages outside the exception class.
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.lint.per-file-ignores]
"{python-package-check,git-cliff-release}/**/*.py" = [
"INP001", # Implicit namespace package - these are script directories, not packages.
"S603", # `subprocess` call: arguments are trusted (CI-provided or constants).
"S607", # Starting a process with a partial executable path - tools resolved from PATH by design.
"T201", # `print` is the script's UX.
]
[tool.ty.environment]
python-version = "3.14"
[tool.ty.src]
include = ["**/*.py"]