Files
Charon/.pre-commit-config.yaml
2025-11-17 22:08:59 -05:00

36 lines
1.0 KiB
YAML

repos:
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/sourcery-ai/sourcery
rev: v1.22.0
hooks:
- id: sourcery
args: ["--diff=git diff HEAD", "--no-summary", "--min-level=medium"]
# Only flag critical, high, and medium severity issues
# Low severity issues are excluded as they may be intentional
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6
hooks:
- id: mypy
additional_dependencies: []