-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (89 loc) · 2.31 KB
/
pyproject.toml
File metadata and controls
104 lines (89 loc) · 2.31 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
[build-system]
requires = ["uv_build>=0.9.0,<0.10.0"]
build-backend = "uv_build"
[project]
name = "pyproject"
version = "0.1.0"
description = "Minimal infrastructure settings for a quick start of a python project."
authors = [
{name = "treaditup", email = "treaditup@gmail.com"},
]
classifiers = [
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
requires-python = ">=3.13"
dependencies = [
"adaptix>=3.0.0b11",
"orjson>=3.11.5",
"pyyaml>=6.0.3",
"structlog>=25.5.0",
]
[project.urls]
"Source" = "https://github.com/draincoder/pyproject"
"Homepage" = "https://github.com/draincoder/pyproject"
[dependency-groups]
lint = [
"ruff>=0.14.10",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"types-pyyaml>=6.0.12.20250915",
]
test = [
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
]
[tool.ruff]
line-length = 120
target-version="py313"
src = ["src"]
include = ["src/**.py", "tests/**.py"]
lint.select = [
"ALL",
]
lint.ignore = [
"ANN401", # allow any-type
"D", # ignore docstring requirements
"PTH123" # allow use open()
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"TID252", # allow parent-relative imports in tests
"PLR2004", # allow magic values in comparisons
"S101", # allow assert usage
"SLF001", # allow private member access
"PERF203", # allow try-except in loops
"S603", # allow subprocess without shell=False checks
"S607", # allow partial executable paths in subprocess
]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.isort]
known-first-party = ["src", "tests"]
no-lines-before = ["local-folder"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 88
[tool.mypy]
packages = ["src", "tests"]
python_version = "3.13"
strict = true
pretty = true
allow_redefinition = true
allow_untyped_calls = true
disallow_any_explicit = false
disallow_any_generics = false
disallow_subclassing_any = false
disallow_untyped_decorators = false
ignore_missing_imports = true
show_column_numbers = true
show_error_context = true
warn_unreachable = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = "ignore::DeprecationWarning"
[tool.uv]
required-version = ">=0.9.0"