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: check-ast
|
|
|
|
- id: check-builtin-literals
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: v3.3.1
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2022-09-03 19:23:47 +00:00
|
|
|
args: ["--py37-plus"]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: 5.12.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- 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
|
2022-09-03 19:23:47 +00:00
|
|
|
args: [--safe]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/asottile/blacken-docs
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: 1.13.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: blacken-docs
|
2023-04-05 16:20:20 +00:00
|
|
|
additional_dependencies: [black==23.3]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
2023-04-07 21:03:47 +00:00
|
|
|
rev: "1.3.0"
|
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
|
|
|
|
rev: "0.9.2"
|
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: 6.0.0
|
2022-09-03 16:51:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies:
|
2023-04-05 16:20:20 +00:00
|
|
|
- flake8-bugbear==23.3.23
|
2023-04-19 20:06:58 +00:00
|
|
|
- flake8-comprehensions==3.12
|
2023-03-03 01:40:17 +00:00
|
|
|
- flake8-pytest-style==1.7.2
|
2022-09-03 19:23:47 +00:00
|
|
|
- flake8-spellcheck==0.28
|
2023-02-06 03:13:17 +00:00
|
|
|
- flake8-unused-arguments==0.0.13
|
2023-03-19 04:18:10 +00:00
|
|
|
- flake8-noqa==1.3.1
|
2023-02-06 03:13:17 +00:00
|
|
|
- pep8-naming==0.13.3
|
2022-09-03 19:23:47 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: "v2.7.1"
|
2022-09-03 19:23:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
additional_dependencies:
|
|
|
|
- "prettier@2.7.1"
|
|
|
|
- "@prettier/plugin-xml@2.2"
|