-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (121 loc) · 3.17 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (121 loc) · 3.17 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
# Keep the generated core metadata at 2.3 until the pinned publisher action's
# bundled twine/pkginfo stack accepts Metadata-Version 2.4.
requires = ["setuptools>=68,<77"]
build-backend = "setuptools.build_meta"
[project]
name = "base-cli"
dynamic = ["version"]
description = "A production lifecycle framework for Click and Typer Python CLIs"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Apache-2.0" }
keywords = [
"cli",
"command-line",
"click",
"typer",
"framework",
"lifecycle",
"logging",
"configuration",
]
authors = [
{ name = "Base Foundry" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"click>=8.1,<9",
]
[project.optional-dependencies]
yaml = [
"PyYAML>=6.0,<7",
]
dev = [
"build>=1.2",
"hypothesis>=6.100,<7",
"mypy>=1.17,<2",
"PyYAML>=6.0,<7",
"pytest>=8.0",
"types-PyYAML>=6.0,<7",
]
typer = [
# Typer 0.26+ ships a private Click fork; the adapter selects the matching
# Click dialect so both pre-fork and vendored-Typer command trees work.
"typer>=0.12,<0.28",
]
rich = [
"rich>=13.7,<15",
]
telemetry = [
"opentelemetry-api>=1.24,<2",
]
quality = [
"bandit>=1.7,<2",
"coverage[toml]>=7.6,<8",
"pip-audit>=2.7,<3",
"pytest-cov>=5,<7",
"ruff>=0.8,<1",
]
docs = [
"mkdocs-material>=9.5,<10",
]
[project.urls]
Homepage = "https://github.com/basefoundry/base-cli"
Repository = "https://github.com/basefoundry/base-cli"
Issues = "https://github.com/basefoundry/base-cli/issues"
Documentation = "https://basefoundry.github.io/base-cli/"
"Code of Conduct" = "https://github.com/basefoundry/base-cli/blob/main/CODE_OF_CONDUCT.md"
[tool.setuptools]
package-dir = {"" = "lib/python"}
[tool.setuptools.packages.find]
where = ["lib/python"]
[tool.setuptools.dynamic]
version = {file = "VERSION"}
[tool.setuptools.package-data]
base_cli = ["py.typed"]
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
pythonpath = ["lib/python"]
[tool.mypy]
python_version = "3.10"
# Type-check the portable POSIX baseline consistently across CI runners. The
# runtime suite still exercises native Windows behavior separately.
platform = "linux"
strict = true
warn_unused_ignores = true
mypy_path = ["lib/python"]
[[tool.mypy.overrides]]
module = ["opentelemetry", "opentelemetry.*"]
ignore_missing_imports = true
[tool.coverage.run]
branch = true
source = ["base_cli"]
[tool.coverage.report]
fail_under = 80
exclude_also = [
"if __name__ == .__main__.:",
"pragma: no cover",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "B", "UP"]
ignore = ["E402", "E501"]