Files
grm/.pre-commit-config.yaml
T
Emil Simeonov 1d3d2487ac GRM-20: Fix molecule verify playbooks and update Makefile targets
- Add runner_name variable to default, binary, and lifecycle verify playbooks
- Update molecule target to test all 7 scenarios sequentially
- Add molecule-docker and molecule-binary platform matrix targets
- Disable checkmake maxbodylength rule to accommodate longer recipes
2026-06-19 04:26:57 +02:00

57 lines
1.5 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]
- id: commit-msg
name: validate commit message
entry: .venv/bin/python scripts/validate_commit_msg.py
language: system
stages: [commit-msg]
pass_filenames: true