default_stages: [pre-commit, pre-push] repos: - repo: local hooks: - id: trailing-whitespace name: Trim trailing space entry: trailing-whitespace-fixer language: system types: [file, text] - id: end-of-file-fixer name: Fix end of files description: Ensures that a file is either empty, or ends with one newline. entry: end-of-file-fixer language: system types: [file, text] - id: check-merge-conflict name: Check for merge conflicts description: Check for files that contain merge conflict strings. entry: check-merge-conflict language: system types: [file, text] - id: ruff-format name: Ruff format description: Format. entry: ruff format --check --config pyproject.toml language: system types: [python] - id: ruff-lint name: Ruff linter description: Lint. entry: ruff check --force-exclude --config pyproject.toml language: system types: [python]