Running Tests
To run tests using uv and pytest, first ensure you have the development dependencies installed:
# Install all depsuv pip install -e .
Then, run the full test suite using:
uv run pytest
Or to run a specific test file:
uv run pytest tests/test_hcl_symbols.py
Code Style and Formatting
Kit uses Ruff for linting, formatting, and import sorting with a line length of 120 characters. Our configuration can be found in pyproject.toml
.
To check your code against our style guidelines:
# Run linting checksruff check .
# Check format (doesn't modify files)ruff format --check .
To automatically fix linting issues and format your code:
# Fix linting issuesruff check --fix .
# Format coderuff format .
These checks are enforced in CI, so we recommend running them locally before pushing changes.