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.
38 lines
982 B
YAML
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]
|