codeflash-agent/.pre-commit-config.yaml
Kevin Turcios 20f6c59f05
Lint and format entire repo, not just packages (#23)
Remove .codeflash/ from ruff extend-exclude, add per-file ignores
for .codeflash/, scripts/, evals/, and plugin/ (benchmark/script
patterns like print, eval, magic values). Remove shebangs. Widen
pre-commit hooks to check the full repo.
2026-04-15 03:16:15 -05:00

38 lines
982 B
YAML

repos:
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: uv run ruff check
language: system
pass_filenames: false
types: [python]
- id: ruff-format
name: ruff format
entry: uv run ruff format --check
language: system
pass_filenames: false
types: [python]
- id: interrogate
name: interrogate
entry: uv run interrogate packages/codeflash-core/src/ packages/codeflash-python/src/
language: system
pass_filenames: false
types: [python]
- id: mypy
name: mypy
entry: uv run mypy packages/codeflash-core/src/ packages/codeflash-python/src/
language: system
pass_filenames: false
types: [python]
- id: pytest
name: pytest
entry: uv run pytest packages/ -v
language: system
pass_filenames: false
types: [python]
stages: [pre-push]