Newer
Older
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
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.
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
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []