-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (44 loc) · 1.15 KB
/
pyproject.toml
File metadata and controls
53 lines (44 loc) · 1.15 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
[build-system]
requires = ["setuptools>=75.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = []
[project]
name = "python-template"
version = "1.0.0"
description = "Reusable Python quality-gate scripts, workflows, and reference configurations."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
[project.optional-dependencies]
dev = [
"build",
"codespell==2.4.1",
"mypy==1.16.0",
"pip-audit",
"pre-commit",
"pytest",
"pytest-cov",
"ruff==0.11.12",
"twine",
"validate-pyproject==0.24",
]
[tool.ruff]
target-version = "py311"
line-length = 120
src = ["scripts", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "S", "SIM", "C4", "PT", "T20", "RUF"]
[tool.ruff.lint.per-file-ignores]
"scripts/**" = ["T20", "S603", "S607"]
"tests/**" = ["S101"]
[tool.mypy]
python_version = "3.11"
strict = true
files = ["scripts", "tests"]
[tool.pytest.ini_options]
addopts = "-ra --import-mode=importlib --cov=scripts --cov-report=term-missing --cov-fail-under=90"
testpaths = ["tests"]
pythonpath = ["."]
[tool.codespell]
skip = ".venv,dist,.git,.mypy_cache,.ruff_cache,.pytest_cache,reference"