This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
- AVOID inline comments in code!!!
# Install with development dependencies
pip install -e .[dev]# Run all tests
pytest
# Run specific test file
pytest tests/test_example.py# Format and lint code (required before commits)
ruff check --fix --select I && ruff formatThis is a Python package template. Customize this section to describe your package's architecture.
Tests are located in the tests/ directory. The conftest.py provides shared fixtures. Always run tests before committing changes.
- Adding new features: Modify
toolsets/__init__.pyand relevant modules - CLI modifications: Update entry points in
pyproject.toml - Adding dependencies: Update
pyproject.tomlunder[project.dependencies]or[project.optional-dependencies]
When given a GitHub issue to solve, follow this workflow:
- Create a new branch named after the issue (e.g.,
fix-issue-123or descriptive name) - Implement the solution following the existing code patterns and conventions
- Run tests to ensure nothing is broken:
pytest - Run linting/formatting:
ruff check --fix --select I && ruff format - That's it. Never use the
gitcommit command after a task is finished.
git checkout -b fix-issue-NUMBERAlways ensure tests pass and code is formatted before pushing.