GRM-1: feat: initial implementation of Gitea Runner Manager

This commit is contained in:
Emil Simeonov
2026-06-17 18:15:28 +02:00
commit 170b53ad28
52 changed files with 2191 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
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: detect-secrets
name: detect-secrets
entry: .venv/bin/detect-secrets scan --baseline .secrets.baseline
language: system
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]