.pre-commit-config.yaml•782 B
default_stages: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: requirements-txt-fixer
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
args: ["--maxkb=50000"]
- id: check-case-conflict
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.8
hooks:
- id: ruff
args: [--fix]
- id: ruff-format