-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (112 loc) · 3.51 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (112 loc) · 3.51 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "slash-command-manager"
version = "0.1.0"
description = "Slash Command Generator and MCP Server for SDD Workflow"
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
authors = [{ name = "Liatrio", email = "info@liatrio.com" }]
keywords = ["cli", "generator", "mcp", "slash-commands", "sdd"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"fastmcp",
"questionary>=1.10.0",
"requests>=2.31.0",
"tomli-w>=1.0.0",
"rich>=13.0.0",
"typer>=0.9.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-httpx>=0.35.0",
"ruff>=0.1.0",
"pre-commit>=3.0.0",
"pexpect>=4.9.0",
]
[project.scripts]
slash-man = "slash_commands.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["slash_commands", "mcp_server"]
[tool.hatch.build.targets.wheel.force-include]
"server.py" = "server.py"
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
pythonpath = ["."]
addopts = ["-v", "--strict-markers", "--strict-config", "-m", "not integration"]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[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
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # allow unused imports in __init__.py files
[tool.ruff.lint.isort]
known-first-party = ["slash_commands", "mcp_server"]
# Semantic-release configuration moved to .releaserc.toml
# This matches the template repository approach and avoids build_command execution issues
# See .releaserc.toml for current configuration
#
# [tool.semantic_release]
# # Use annotated tags like v1.2.3
# tag_format = "v{version}"
# # Default commit parser (Angular/Conventional Commits)
# # Generate changelog and commit version bumps
# # Update the version field in pyproject.toml
# version_toml = ["pyproject.toml:project.version"]
# # Ensure uv.lock stays in sync with version changes and is committed
# # Run uv to refresh the lock file, then stage it so PSR includes it
# # Also build the package to ensure build hooks run
# # NOTE: build_command removed - it was failing because curl is not available
# # in the GitHub Actions environment. Build steps should be handled in workflow.
# build_command = """
# curl -LsSf https://astral.sh/uv/install.sh | sh -s
# export PATH="$HOME/.local/bin:$PATH"
# uv lock
# git add uv.lock
# python -m build --wheel --sdist
# """
# # Generate changelog and commit version bumps
# assets = ["uv.lock"]
#
# [tool.semantic_release.changelog]
# # Generate CHANGELOG.md in Markdown
# default_templates = { changelog_file = "CHANGELOG.md", output_format = "md" }
#
# [tool.semantic_release.branches]
# # Release from the main branch
# main = { match = "main" }
[dependency-groups]
dev = ["build>=1.3.0"]