SuperClaude/pyproject.toml
BlackBear 18c0e4e127
Add missing install.sh script (#483)
* feat: add missing install.sh script referenced in README\n\n- Create comprehensive installation script with POSIX compatibility\n- Add interactive and non-interactive installation modes\n- Include prerequisites checking and MCP server setup guidance\n- Replace echo -e with printf for better POSIX compliance

* fix: resolve linting errors in install_mcp.py and clean_command_names.py

Fix multiple ruff linting errors to ensure CI/CD pipeline passes:

- install_mcp.py: Remove unused pathlib.Path import, replace bare except
  with specific exception types (ValueError, IndexError), remove
  extraneous f-string prefixes on lines without placeholders
- clean_command_names.py: Remove unused os import, convert f-strings
  without placeholders to regular strings
- pyproject.toml: Exclude docs/ directory from ruff checks to avoid
  N999 module naming violations in documentation templates

All linting checks now pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* style: apply ruff format to Python source files

Apply ruff formatting rules to CLI and scripts modules to ensure
consistent code style across the codebase.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(ci): remove incompatible pip cache from quick-check workflow

## Problem
GitHub Actions was failing with error:
"Cache folder path is retrieved for pip but doesn't exist on disk:
/home/runner/.cache/pip. This likely indicates that there are no
dependencies to cache."

## Root Cause
The quick-check.yml workflow specified `cache: 'pip'` in the Python
setup step, but the workflow uses UV (not pip) for package management
via `uv pip install --system -e ".[dev]"`.

UV uses its own cache directory (~/.cache/uv), so the pip cache path
was never created, causing the error.

This was a migration oversight:
- When UV was adopted as the project standard (commit 00706f0), the
  CLAUDE.md established "CRITICAL: Never use pip directly" rule
- The test.yml workflow was created correctly without pip cache
- The quick-check.yml workflow incorrectly included pip cache from
  initial creation (commit 8c0559c) and was not updated during migration

## Solution
Remove `cache: 'pip'` line to align with:
- Project's UV-first architecture (CLAUDE.md)
- test.yml workflow (which runs successfully without pip cache)
- readme-quality-check.yml workflow (no cache needed)

Note: publish-pypi.yml intentionally uses pip cache as it directly
runs `python -m pip install` commands, which is correct for that workflow.

## Impact
-  Eliminates GitHub Actions cache warning
-  Aligns all UV-based workflows consistently
-  Follows project standards documented in CLAUDE.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-14 08:03:04 +05:30

183 lines
4.5 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "superclaude"
version = "4.1.8"
description = "AI-enhanced development framework for Claude Code - pytest plugin with optional skills"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Kazuki Nakai"},
{name = "NomenAK", email = "anton.knoery@gmail.com"},
{name = "Mithun Gowda B", email = "mithungowda.b7411@gmail.com"}
]
requires-python = ">=3.10"
keywords = ["claude", "ai", "automation", "framework", "pytest", "plugin", "testing", "development"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"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 :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Environment :: Console",
]
dependencies = [
"pytest>=7.0.0",
"click>=8.0.0",
"rich>=13.0.0",
]
[project.optional-dependencies]
dev = [
"pytest-cov>=4.0.0",
"pytest-benchmark>=4.0.0",
"scipy>=1.10.0", # For A/B testing
"black>=22.0",
"ruff>=0.1.0",
"mypy>=1.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"scipy>=1.10.0",
]
[project.urls]
Homepage = "https://github.com/SuperClaude-Org/SuperClaude_Framework"
GitHub = "https://github.com/SuperClaude-Org/SuperClaude_Framework"
"Bug Tracker" = "https://github.com/SuperClaude-Org/SuperClaude_Framework/issues"
Documentation = "https://github.com/SuperClaude-Org/SuperClaude_Framework/blob/main/README.md"
# ⭐ CLI commands (hatchling format)
[project.scripts]
superclaude = "superclaude.cli.main:main"
# ⭐ pytest plugin auto-discovery (most important!)
[project.entry-points.pytest11]
superclaude = "superclaude.pytest_plugin"
[tool.hatch.build.targets.wheel]
packages = ["src/superclaude"]
include = [
"src/superclaude/skills/**/*.md",
"src/superclaude/skills/**/*.ts",
"src/superclaude/skills/**/*.json",
"src/superclaude/commands/**/*.md",
"src/superclaude/agents/**/*.md",
"src/superclaude/modes/**/*.md",
"src/superclaude/mcp/**/*.md",
"src/superclaude/mcp/**/*.json",
"src/superclaude/core/**/*.md",
"src/superclaude/examples/**/*.md",
"src/superclaude/hooks/**/*.json",
"src/superclaude/scripts/**/*.py",
"src/superclaude/scripts/**/*.sh",
]
[tool.hatch.build.targets.sdist]
include = [
"src/",
"tests/",
"README.md",
"LICENSE",
"pyproject.toml",
]
exclude = [
"*.pyc",
"__pycache__",
".git*",
".venv*",
"*.egg-info",
".DS_Store",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"hallucination: Hallucination detection tests",
"performance: Performance benchmark tests",
"confidence_check: Pre-execution confidence assessment",
"self_check: Post-implementation validation",
"reflexion: Error learning and prevention",
"complexity: Task complexity level (simple, medium, complex)",
]
[tool.coverage.run]
source = ["src/superclaude"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/.*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312"]
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = ["docs/"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
ignore = ["E501"] # Line too long (handled by black)
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Allow for gradual typing
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true