2022-09-03 16:51:10 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.3.0
|
|
|
|
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
|
2022-10-22 18:35:19 +00:00
|
|
|
rev: v3.1.0
|
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
|
|
|
|
rev: 5.10.1
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
2022-10-22 18:35:19 +00:00
|
|
|
rev: 22.10.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
|
|
|
|
rev: v1.12.1
|
|
|
|
hooks:
|
|
|
|
- id: blacken-docs
|
2022-10-22 18:35:19 +00:00
|
|
|
additional_dependencies: [black==22.10]
|
2022-09-03 16:51:10 +00:00
|
|
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
|
|
|
rev: "0.5.2"
|
|
|
|
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
|
|
|
|
rev: 5.0.4
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies:
|
2022-10-30 22:35:17 +00:00
|
|
|
- flake8-bugbear==22.10.27
|
|
|
|
- flake8-comprehensions==3.10.1
|
2022-09-03 19:23:47 +00:00
|
|
|
- flake8-pytest-style==1.6
|
|
|
|
- flake8-spellcheck==0.28
|
2022-10-22 18:35:19 +00:00
|
|
|
- flake8-unused-arguments==0.0.12
|
2022-09-03 19:23:47 +00:00
|
|
|
- flake8-noqa==1.2.9
|
|
|
|
- pep8-naming==0.13.2
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2022-10-30 22:36:03 +00:00
|
|
|
rev: "v3.0.0-alpha.3"
|
2022-09-03 19:23:47 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
additional_dependencies:
|
|
|
|
- "prettier@2.7.1"
|
|
|
|
- "@prettier/plugin-xml@2.2"
|