# Modern pre-commit configuration for 2025 | |
repos: | |
- repo: https://github.com/astral-sh/ruff-pre-commit | |
# Ruff version | |
rev: v0.12.10 | |
hooks: | |
# Run the linter | |
- id: ruff | |
args: [--fix] | |
# Run the formatter | |
- id: ruff-format | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v1.17.1 | |
hooks: | |
- id: mypy | |
additional_dependencies: [ | |
types-requests, | |
types-Pillow, | |
types-setuptools, | |
] | |
args: [--ignore-missing-imports, --no-strict-optional] | |
- 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-added-large-files | |
- id: check-merge-conflict | |
- id: debug-statements | |