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-02-06 03:13:17 +00:00
|
|
|
rev: 23.1.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-02-06 03:13:17 +00:00
|
|
|
additional_dependencies: [black==23.1]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
2023-02-06 03:13:17 +00:00
|
|
|
rev: "0.6.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"]
|
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-02-06 03:13:17 +00:00
|
|
|
- flake8-bugbear==23.1.20
|
2022-10-30 22:35:17 +00:00
|
|
|
- flake8-comprehensions==3.10.1
|
2022-09-03 19:23:47 +00:00
|
|
|
- flake8-pytest-style==1.6
|
|
|
|
- flake8-spellcheck==0.28
|
2023-02-06 03:13:17 +00:00
|
|
|
- flake8-unused-arguments==0.0.13
|
|
|
|
- flake8-noqa==1.3
|
|
|
|
- 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"
|