Files
grm/.pre-commit-config.yaml
T

50 lines
1.3 KiB
YAML

repos:
- repo: local
hooks:
- id: ruff-lint
name: ruff lint
entry: .venv/bin/ruff check src/ tests/
language: system
types: [python]
pass_filenames: false
stages: [pre-commit]
- id: ruff-format
name: ruff format check
entry: .venv/bin/ruff format --check src/ tests/
language: system
types: [python]
pass_filenames: false
stages: [pre-commit]
- id: pyright
name: pyright type check
entry: .venv/bin/pyright
language: system
types: [python]
pass_filenames: false
stages: [pre-commit]
- id: ansible-lint
name: ansible-lint
entry: .venv/bin/ansible-lint ansible/
language: system
types: [yaml]
pass_filenames: false
stages: [pre-commit]
- id: pytest-cov
name: pytest with 100% coverage
entry: .venv/bin/pytest tests/unit/ --cov=src/gitea_runner_manager --cov-report=term-missing --cov-fail-under=100
language: system
types: [python]
pass_filenames: false
stages: [pre-push]
- id: test-all
name: run all tests
entry: make test-all
language: system
pass_filenames: false
stages: [pre-push]