summaryrefslogtreecommitdiffstatshomepage
path: root/.pre-commit-config.yaml
blob: ac9785bb592325cecacb5c9ba82f4de85413d4be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
repos:
  - repo: local
    hooks:
      - id: codeformat
        name: MicroPython codeformat.py for changed C files
        entry: tools/codeformat.py -v -c -f
        language: python
      - id: verifygitlog
        name: MicroPython git commit message format checker
        entry: tools/verifygitlog.py --check-file --ignore-rebase
        language: python
        verbose: true
        stages: [commit-msg]
  - repo: https://github.com/charliermarsh/ruff-pre-commit
    # Version should be kept in sync with .github/workflows/ruff.yml & also micropython-lib
    rev: v0.11.6
    hooks:
      - id: ruff
      - id: ruff-format
  - repo: https://github.com/codespell-project/codespell
    # Version should be kept in sync with .github/workflows/codespell.yml
    rev: v2.4.1
    hooks:
      - id: codespell
        name: Spellcheck for changed files (codespell)
        additional_dependencies:
          - tomli