42 lines
1008 B
YAML
42 lines
1008 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
# list of supported hooks: https://pre-commit.com/hooks.html
|
|
- id: check-yaml
|
|
args: ["--unsafe"]
|
|
- id: debug-statements
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
args: ["--fix=lf"]
|
|
- id: trailing-whitespace
|
|
args: ["--markdown-linebreak-ext=md"]
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.10.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.11.7
|
|
hooks:
|
|
- id: ruff
|
|
args: [--output-format, github, --fix, --line-length=160]
|
|
|
|
- repo: https://github.com/crate-ci/typos
|
|
rev: v1.35.5
|
|
hooks:
|
|
- id: typos
|
|
# only for staged files
|
|
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.7.7
|
|
hooks:
|
|
- id: actionlint
|
|
files: ^\.github/workflows/.*\.ya?ml$
|