47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# RMI Pre-commit Config — drop into any rmi project
|
|
# Copy to project root as .pre-commit-config.yaml
|
|
# Install: pre-commit install
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-added-large-files
|
|
args: ["--maxkb=500"]
|
|
- id: check-merge-conflict
|
|
- id: detect-private-keys
|
|
- id: mixed-line-ending
|
|
args: ["--fix=lf"]
|
|
- id: no-commit-to-branch
|
|
args: ["--branch", "main", "--branch", "staging"]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.15.16
|
|
hooks:
|
|
- id: ruff
|
|
args: ["check", "--fix"]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: mypy
|
|
args: ["--strict", "--ignore-missing-imports"]
|
|
language: system
|
|
types: [python]
|
|
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.24.0
|
|
hooks:
|
|
- id: gitleaks
|
|
args: ["detect", "--source", ".", "--verbose"]
|
|
|
|
- repo: https://github.com/ejcx/git-hound
|
|
rev: v1.2.0
|
|
hooks:
|
|
- id: git-hound
|
|
args: ["--config", ".githound.yml"]
|