Skip to content

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Sep 30, 2025

⚡ Fast Pre-commit Hooks & CI

Add comprehensive pre-commit configuration using prek (18x faster than standard pre-commit) and GitHub Actions CI.

Key Features

  • Fast Rust-based pre-commit with prek
  • Comprehensive hooks: ruff, ty, file hygiene, Python checks
  • Cross-platform CI: Ubuntu/Windows/macOS, Python 3.9-3.13
  • Coverage reporting and pixi integration

Depends On

Tools Included

  • Ruff: Fast Python linting and formatting
  • Ty: Next-generation type checker from Astral
  • File hygiene: Trailing whitespace, YAML/TOML validation
  • Python checks: Blanket noqa prevention, type annotations

Enables fast development workflow with sub-second hook execution.

- Add comprehensive .pre-commit-config.yaml with prek-optimized hooks
- Include ruff (linting/formatting), ty (type checking), file hygiene checks
- Add Python-specific checks: blanket noqa/type-ignore, logger.warn usage
- Configure GitHub Actions workflow with pixi for cross-platform testing
- Support Python 3.9-3.13 on ubuntu/windows/macos
- Include coverage reporting and CI pipeline with lint/type-check/test
- Use prefix-dev/setup-pixi action for fast pixi environment setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant