2022-09-03 16:51:10 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-20 18:19:56 +00:00
|
|
|
rev: v4.5.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2023-09-28 16:09:10 +00:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2023-10-20 18:19:56 +00:00
|
|
|
rev: v2.2.6
|
2023-09-28 16:09:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
#args: ["--write-changes"] # uncomment if you want to get automatic fixing
|
2023-10-02 18:01:37 +00:00
|
|
|
- repo: https://github.com/PyCQA/docformatter
|
2023-09-28 00:17:09 +00:00
|
|
|
rev: v1.7.5
|
|
|
|
hooks:
|
|
|
|
- id: docformatter
|
2023-12-09 04:39:08 +00:00
|
|
|
additional_dependencies: [tomli>=2.0.1]
|
2023-09-28 00:17:09 +00:00
|
|
|
args: ["--in-place"]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2024-01-04 00:22:42 +00:00
|
|
|
rev: 23.12.1
|
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-12-09 04:39:08 +00:00
|
|
|
rev: "1.5.3"
|
2023-03-03 01:40:17 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
2023-12-09 04:39:08 +00:00
|
|
|
additional_dependencies: ["tox>=4.11.4"]
|
2023-07-11 00:58:44 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-01-04 00:22:42 +00:00
|
|
|
rev: "v0.1.9"
|
2023-07-11 00:58:44 +00:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
2023-09-28 00:17:09 +00:00
|
|
|
args: ["--fix"]
|
2023-06-14 20:02:41 +00:00
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
|
|
|
- id: check-useless-excludes
|