Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (129 loc) · 3.61 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (129 loc) · 3.61 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
136
137
138
[build-system]
requires = ["build>=1.3.0", "setuptools>=80.8.0", "setuptools-scm>=9.2.1"]
build-backend = "setuptools.build_meta"
[project]
name = "cmd2"
dynamic = ["version"]
description = "cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python"
authors = [{ name = "cmd2 Contributors" }]
readme = "README.md"
requires-python = ">=3.11"
keywords = ["CLI", "cmd", "command", "interactive", "prompt", "Python"]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 3 - Stable",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"prompt-toolkit>=3.0.53",
"pyperclip>=1.8.2",
"rich>=15.0.0",
"rich-argparse>=1.7.2",
]
[dependency-groups]
build = ["build>=1.3.0", "setuptools>=80.8.0", "setuptools-scm>=9.2.1"]
dev = [
"codecov>=2.1",
"coverage>=7.11.3",
"ipython>=8.23",
"mkdocstrings[python]>=1",
"mypy>=2.3.1",
"prek>=0.3.5",
"pyte>=0.8.2",
"pytest>=8.1.1",
"pytest-cov>=5",
"pytest-mock>=3.14.1",
"pytest-xdist>=3.8",
"ruff>=0.16.0",
"ty>=0.0.75",
"uv-publish>=1.3",
"zensical>=0.0.57",
]
docs = [
"mkdocstrings[python]>=1",
"setuptools>=80.8.0",
"setuptools_scm>=8",
"zensical>=0.0.57",
]
quality = ["prek>=0.3.5"]
test = [
"codecov>=2.1",
"coverage>=7.11.3",
"pyte>=0.8.2",
"pytest>=8.1.1",
"pytest-cov>=5",
"pytest-mock>=3.14.1",
"pytest-xdist>=3.8",
]
validate = [
"ipython>=8.23",
"mypy>=2.3.1",
"ty>=0.0.75",
"types-setuptools>=80.8.0",
]
[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
exclude = [
"^.git/",
"^.venv/",
"^build/", # .build directory
"^docs/", # docs directory
"^dist/",
"^examples/", # examples directory
"^noxfile\\.py$", # nox config file
"setup\\.py$", # any files named setup.py
"^site/",
"^tests/", # tests directory
]
files = ['.']
# Check as CI does, on Linux, so results don't depend on the developer's OS. Windows-only
# branches are skipped, and POSIX-only job control would otherwise fail to check on Windows.
platform = "linux"
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"-n=auto",
# Spread slow terminal cases across workers instead of queuing them in one batch.
"--maxschedchunk=1",
"--cov=cmd2",
"--cov-config=pyproject.toml",
"--cov-report=xml",
"--cov-report=term",
"--cov-report=html",
]
[tool.coverage.run]
# Include the cmd2 applications launched by the terminal integration tests.
patch = ["subprocess"]
# Use sys.monitoring on Python 3.12+; coverage falls back with a warning on 3.11.
core = "sysmon"
source = ["cmd2"]
[tool.coverage.report]
precision = 1
exclude_also = ["if __name__ == .__main__.:"]
[tool.setuptools]
packages = ["cmd2"]
[tool.setuptools_scm]
[tool.uv]
default-groups = ["build", "dev"]