repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: check-case-conflict - id: check-docstring-first - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-shebang-scripts-are-executable - id: end-of-file-fixer exclude: CHANGELOG.md - id: fix-byte-order-marker - id: mixed-line-ending args: ["--fix", "lf"] - id: trailing-whitespace exclude: CHANGELOG.md - id: check-json - id: check-toml - id: check-yaml - id: detect-private-key - id: requirements-txt-fixer - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.7.4 hooks: # Run the linter. - id: ruff types_or: [python, pyi, jupyter] args: [--fix] # Run the formatter. - id: ruff-format types_or: [python, pyi, jupyter] - repo: https://github.com/compilerla/conventional-pre-commit rev: v3.6.0 hooks: - id: conventional-pre-commit stages: [commit-msg] args: []