Files
grm/.pre-commit-config.yaml
T
Emil Simeonov 7d25e059f7
CI / lint (push) Has been cancelled
CI / unit-tests (push) Has been cancelled
CI / molecule-tests (push) Has been cancelled
Post-merge Vikunja update / vikunja (push) Has been cancelled
GRM-20: fix: remove molecule tests from pre-push hooks
2026-06-19 15:45:05 +02:00

57 lines
1.5 KiB
YAML

repos:
- repo: local
hooks:
- id: validate-commit-msg
name: validate commit message
entry: python3 scripts/validate_commit_msg.py
language: system
stages: [commit-msg]
pass_filenames: true
- 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=scripts --cov-report=term-missing --cov-fail-under=100
language: system
types: [python]
pass_filenames: false
stages: [pre-push]
- id: commit-msg
name: validate commit message
entry: .venv/bin/python scripts/validate_commit_msg.py
language: system
stages: [commit-msg]
pass_filenames: true