Files
alfred/.pre-commit-config.yaml
2025-12-18 07:52:54 +01:00

36 lines
887 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
name: Gitleaks
- repo: local
hooks:
- id: ruff-check
name: Ruff Linter
entry: bash -c 'cd brain && poetry run ruff check --fix'
language: system
types: [python]
- id: ruff-format
name: Ruff Formatter
entry: bash -c 'cd brain && poetry run ruff format'
language: system
types: [python]
- id: system-pytest
name: Pytest
entry: bash -c 'cd brain && poetry run pytest -n auto --dist=loadscope'
language: system
always_run: true