-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 1.77 KB
/
pyproject.toml
File metadata and controls
107 lines (95 loc) · 1.77 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
[project]
name = "app"
version = "0.1.0"
description = "Plantilla Python CLI con arquitectura hexagonal (ports & adapters)."
readme = "README.md"
requires-python = ">=3.13"
authors = [{ name = "StackAI" }]
license = { text = "MIT" }
dependencies = [
"typer>=0.12",
]
[project.scripts]
app = "app.entrypoint.cli:main"
[dependency-groups]
dev = [
"ruff>=0.6",
"pytest>=8.0",
"pytest-cov>=5.0",
"tach>=0.20",
"pre-commit>=3.7",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/app"]
# ---------- Ruff ----------
[tool.ruff]
line-length = 88
target-version = "py313"
src = ["src", "tests"]
extend-exclude = [".venv", "dist", "build"]
[tool.ruff.lint]
select = [
"E", "W",
"F",
"I",
"N",
"D",
"UP",
"B",
"C4",
"SIM",
"RET",
"ANN",
"ARG",
"PTH",
"ERA",
"TID",
"Q",
"PL",
"RUF",
"S",
"BLE",
"EM",
"T20",
"G",
"PIE",
"ISC",
]
ignore = [
"D203",
"D213",
"ANN401",
"PLR0913",
"COM812",
"ISC001",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "ANN", "S101", "PLR2004"]
"**/__init__.py" = ["D104"]
"src/app/entrypoint/__main__.py" = ["D100"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
# ---------- Pytest ----------
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--cov=app",
"--cov-report=term-missing",
]