35 lines
943 B
YAML
35 lines
943 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: "v0.0.272"
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.3.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
|
rev: "1.3.1"
|
|
hooks:
|
|
- id: tox-ini-fmt
|
|
args: ["-p", "fix"]
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
rev: "0.12.0"
|
|
hooks:
|
|
- id: pyproject-fmt
|
|
additional_dependencies: ["tox>=4.6"]
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: "v3.0.0-alpha.9-for-vscode"
|
|
hooks:
|
|
- id: prettier
|
|
args: ["--print-width=120", "--prose-wrap=always"]
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|