wham / .pre-commit-config.yaml
orrp
Refactoring, linting, switching to pyproject.toml and Docker
9583919
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0 # Use the latest version available
hooks:
# Run the linter and import sorter
- id: ruff
args: [--fix]
# Run the formatter (replaces black)
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace