Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/.pre-commit-config.yaml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (27 sloc)
895 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
rev: v0.1.3 | |
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.2.6 | |
hooks: | |
- id: codespell | |
name: Spellcheck for changed files (codespell) | |
additional_dependencies: | |
- tomli |