2022-09-03 16:51:10 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: v4.4.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2023-06-14 20:02:41 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: "v0.0.272"
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
2023-06-14 20:02:41 +00:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-04-05 16:20:20 +00:00
|
|
|
rev: 23.3.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
2023-06-19 23:26:53 +00:00
|
|
|
rev: "1.3.1"
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: tox-ini-fmt
|
2022-09-03 19:23:47 +00:00
|
|
|
args: ["-p", "fix"]
|
2023-03-03 01:40:17 +00:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2023-06-19 23:26:53 +00:00
|
|
|
rev: "0.12.0"
|
2023-03-03 01:40:17 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
2023-06-14 20:02:41 +00:00
|
|
|
additional_dependencies: ["tox>=4.6"]
|
2022-09-03 19:23:47 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-06-14 20:02:41 +00:00
|
|
|
rev: "v3.0.0-alpha.9-for-vscode"
|
2022-09-03 19:23:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2023-06-14 20:02:41 +00:00
|
|
|
args: ["--print-width=120", "--prose-wrap=always"]
|
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
|
|
|
- id: check-useless-excludes
|