-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (87 loc) · 2.1 KB
/
pyproject.toml
File metadata and controls
104 lines (87 loc) · 2.1 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
[project]
name = "templates.python"
version = "0.4.0"
description = "A boilerplate for Python projects."
readme = "README.md"
requires-python = ">=3.13"
license = {text = "MIT"}
authors = [
{name = "Andy Pai", email = "andy@r2pi.co"},
]
dependencies = [
"pydantic>=2.12.5",
"pydantic-settings>=2.12.0",
"structlog>=25.4.0",
]
[project.optional-dependencies]
dev = [
"ipykernel>=7.1.0",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.14.10",
"ty>=0.0.5",
]
ml = [
"torch>=2.9.1",
"scikit-learn>=1.8.0",
"mlflow>=3.8.0",
"matplotlib>=3.10.8",
"numpy>=2.4.0",
"pandas>=2.3.3",
"seaborn>=0.13.2",
]
[project.scripts]
templates-python = "templates_python.main:main"
[tool.ruff]
line-length = 88
indent-width = 2
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"RUF", # ruff-specific rules
]
ignore = ["E501", "B008", "C901", "N812", "N803", "N806"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = ["-ra", "--cov=templates_python", "--cov-report=term-missing", "--cov-fail-under=80"]
[tool.ty]
# Astral's ty type checker configuration
[tool.ty.environment]
# Point to your project venv; ty auto-detects .venv but this is explicit & robust.
python = ".venv"
python-version = "3.13"
[tool.ty.src]
include = ["src", "tests"]
exclude = ["**/__pycache__", "*.pyc"]
respect-ignore-files = true
[tool.ty.rules]
# Strict type checking rules
possibly-unresolved-reference = "error"
division-by-zero = "error"
[tool.ty.terminal]
output-format = "concise"
[tool.coverage.run]
branch = true
source = ["templates_python"]
[tool.coverage.report]
show_missing = true
skip_covered = true
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/templates_python"]