39 lines
1,002 B
YAML
39 lines
1,002 B
YAML
|
|
repos:
|
||
|
|
- repo: local
|
||
|
|
hooks:
|
||
|
|
- id: ruff-check
|
||
|
|
name: ruff check
|
||
|
|
entry: uv run ruff check packages/
|
||
|
|
language: system
|
||
|
|
pass_filenames: false
|
||
|
|
types: [python]
|
||
|
|
|
||
|
|
- id: ruff-format
|
||
|
|
name: ruff format
|
||
|
|
entry: uv run ruff format --check packages/
|
||
|
|
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]
|