# Pre-commit hooks configuration for Fjerkroa Bot # # Formatter/linter/type-checker run from the uv-managed project env so # hook versions == pyproject dev-dependency versions (no pin drift). repos: # Built-in hooks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: check-json - id: check-added-large-files - id: check-case-conflict - id: check-merge-conflict - id: debug-statements # Project-env tools (single version source: pyproject.toml) - repo: local hooks: - id: black name: black entry: uv run black language: system types: [python] - id: isort name: isort entry: uv run isort language: system types: [python] - id: flake8 name: flake8 entry: uv run flake8 language: system types: [python] - id: mypy name: mypy entry: uv run mypy fjerkroa_bot tests language: system pass_filenames: false - id: trace name: Spec coverage (trace) entry: uv run python tools/trace.py language: system pass_filenames: false always_run: true - id: tests name: Run tests entry: make test-fast language: system pass_filenames: false always_run: true stages: [pre-commit] # Configuration default_stages: [pre-commit, pre-push] fail_fast: false