-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (97 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
109 lines (97 loc) · 2.94 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
108
109
# path-sync copy -n python-template
[project]
name = "ask-shell"
version = "0.6.0"
description = "CLIs with prompts, shell runs, and testable flows"
requires-python = ">=3.13"
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
authors = [{ name = "EspenAlbert", email = "espen.albert1@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"model-lib[toml]",
"zero-3rdparty",
"questionary>=2.1.0",
"rich>=13.9.4",
"typer>=0.16.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = ["*/**/*.py", "*/py.typed"]
exclude = ["*_examples.py", "*_test.py", "conftest.py", "test_*.json"]
# === DO_NOT_EDIT: path-sync pkg-ext ===
[tool.pkg-ext]
tag_prefix = "v"
max_bump_type = "minor"
# === OK_EDIT: path-sync pkg-ext ===
[tool.pkg-ext.groups.shell]
examples_include = [
"AbortRetryError",
]
# === DO_NOT_EDIT: path-sync ruff ===
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
# E501: line too long (handled by formatter)
# UP006: use `type` instead of `Type` from typing module
# UP007: use `X | Y` instead of `Union[X, Y]`
# UP035: use `typing` instead of `typing_extensions`
# UP040: use `type` keyword instead of `TypeAlias`
# UP046: use type parameters on functions instead of TypeVar
# UP047: use type parameters instead of `Generic[T]` subclass
extend-ignore = ["E501", "UP006", "UP007", "UP035", "UP040", "UP046", "UP047"]
extend-select = ["Q", "RUF100", "C90", "UP", "I", "T", "FURB"]
# === OK_EDIT: path-sync ruff ===
# === DO_NOT_EDIT: path-sync pytest ===
[tool.pytest.ini_options]
addopts = "-s -vv --log-cli-level=INFO -m 'not manual'"
markers = ["manual: test requires manual env setup (not run in CI)"]
python_files = ["*_test.py", "test_*.py"]
asyncio_mode = "auto"
# === OK_EDIT: path-sync pytest ===
# === DO_NOT_EDIT: path-sync coverage ===
[tool.coverage.report]
omit = ["*_test.py"]
exclude_lines = ["no cov", "if __name__ == .__main__.:"]
# === OK_EDIT: path-sync coverage ===
# === DO_NOT_EDIT: path-sync vulture ===
[tool.vulture]
min_confidence = 80
ignore_names = ["mock_*", "Mock*", "*_mock"]
exclude = [".venv/", "*test.py"]
# === OK_EDIT: path-sync vulture ===
# === DO_NOT_EDIT: path-sync dev-lint ===
[dependency-groups]
dev-lint = [
"pyright>=1.1",
"ruff>=0.14",
"vulture>=2.14",
]
# === OK_EDIT: path-sync dev-lint ===
dev-test = [
"pytest>=9.0",
"pytest-asyncio>=0.24",
"pytest-cov>=7.0",
"pytest-examples>=0.0.18",
"pytest-model-lib",
"pytest-regressions>=2.6",
]
# === DO_NOT_EDIT: path-sync dev ===
dev = [{include-group = "dev-lint"}, {include-group = "dev-test"}]
# === OK_EDIT: path-sync dev ===
# === DO_NOT_EDIT: path-sync release ===
release = ["pkg-ext"]
# === OK_EDIT: path-sync release ===
# === DO_NOT_EDIT: path-sync docs ===
docs = [
"mkdocs-material>=9.5",
]
# === OK_EDIT: path-sync docs ===