/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  repos:
 2    - repo: https://github.com/pre-commit/pre-commit-hooks
 3      rev: v5.0.0
 4      hooks:
 5        - id: check-toml
 6        - id: check-yaml
 7        - id: check-case-conflict
 8        - id: check-docstring-first
 9        - id: end-of-file-fixer
10        - id: trailing-whitespace
11    # Docformatter 1.7.5 isn't compatible with Pre-commit 4.0
12    # - repo: https://github.com/PyCQA/docformatter
13    #   rev: v1.7.5
14    #   hooks:
15    #     - id: docformatter
16    #       args: [--in-place, --black]
17    - repo: https://github.com/astral-sh/ruff-pre-commit
18      rev: v0.9.6
19      hooks:
20        # Run the linter.
21        - id: ruff
22        # Run the formatter.
23        - id: ruff-format
24    - repo: https://github.com/codespell-project/codespell
25      rev: v2.4.1
26      hooks:
27      - id: codespell
28        # remove toml extra once Python 3.10 is no longer supported
29        additional_dependencies: ['.[toml]']