-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (137 loc) · 4.04 KB
/
pyproject.toml
File metadata and controls
158 lines (137 loc) · 4.04 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[project]
name = "klondike-spec-cli"
dynamic = ["version"]
description = "CLI tool for managing Klondike Spec agent workflow artifacts"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Thomas Rohde" }]
keywords = ["cli", "agent", "workflow", "copilot", "klondike-spec"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"pypith>=0.1.2",
"pyyaml>=6.0",
"rich>=13.0",
"mcp>=1.2.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"watchdog>=3.0.0",
"websockets<15",
"requests>=2.31.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"ruff>=0.1.0",
"mypy>=1.0",
"types-PyYAML>=6.0",
]
[project.scripts]
klondike = "klondike_spec_cli.cli:main"
[project.urls]
Homepage = "https://github.com/ThomasRohde/klondike-spec-cli"
Repository = "https://github.com/ThomasRohde/klondike-spec-cli"
Issues = "https://github.com/ThomasRohde/klondike-spec-cli/issues"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
# Use no-local-version to ensure PyPI-compatible version strings
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.hooks.vcs]
version-file = "src/klondike_spec_cli/_version.py"
[tool.hatch.build.targets.sdist]
# Include static web assets in source distribution
include = ["/src", "/tests", "/pyproject.toml", "/README.md", "/LICENSE"]
# Treat static assets as artifacts so they're included despite not being .py files
artifacts = ["*.html", "*.css", "*.js"]
[tool.hatch.build.targets.wheel]
packages = ["src/klondike_spec_cli"]
# Treat static assets as artifacts so they're included despite not being .py files
artifacts = [
"*.html",
"*.css",
"*.js",
"*.svg",
"*.json",
"*.yaml",
"*.md",
"*.sh",
"*.ps1",
]
[tool.hatch.build.targets.wheel.sources]
"src" = ""
# Include template files and static files in the package
# - templates/ directory: Copilot/Claude templates
# - static/ directory: Web UI assets (HTML, CSS, JS) for 'klondike serve'
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-v --cov=klondike_spec_cli --cov-report=term-missing"
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
exclude = ["src/klondike_spec_cli/_version.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "klondike_spec_cli.cli"
# Pith/Typer use Argument/Option as defaults which mypy can't understand
# Also has FastAPI endpoint functions with complex types
disable_error_code = [
"assignment",
"no-untyped-def",
"type-arg",
"attr-defined",
"no-untyped-call",
"var-annotated",
]
[[tool.mypy.overrides]]
module = "klondike_spec_cli.commands.*"
# Pith/Typer use Argument/Option as defaults which mypy can't understand
disable_error_code = ["assignment"]
[[tool.mypy.overrides]]
module = "klondike_spec_cli.worktree"
# Dict type parameters in dataclasses
disable_error_code = ["type-arg"]
[[tool.mypy.overrides]]
module = "klondike_spec_cli.formatting"
# Rich table.add_row takes *args
disable_error_code = ["arg-type"]
[[tool.mypy.overrides]]
module = "pith.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "yaml"
ignore_missing_imports = true