/ .pre-commit-config.yaml
.pre-commit-config.yaml
1 default_language_version: 2 python: python3.11 3 4 default_stages: [pre-commit] 5 default_install_hook_types: [pre-commit] 6 7 repos: 8 - repo: https://github.com/astral-sh/ruff-pre-commit 9 # Pinned to the specific ruff version 0.12.10 10 rev: v0.12.10 11 hooks: 12 # Use the 'ruff-check' hook for linting 13 - id: ruff-check 14 args: [--fix, --fix-only, --exit-non-zero-on-fix] 15 # You can also add the formatter if desired 16 - id: ruff-format 17 18 - repo: https://github.com/pre-commit/pre-commit-hooks 19 rev: v5.0.0 20 hooks: 21 - id: check-yaml 22 args: ["--allow-multiple-documents", "--unsafe"] 23 - id: check-toml 24 - id: check-added-large-files 25 args: ["--maxkb=3000"] 26 - id: check-merge-conflict 27 - id: debug-statements