2021-12-10 08:48:00 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-04-07 10:42:14 +00:00
|
|
|
rev: v4.2.0
|
2021-12-10 08:48:00 +00:00
|
|
|
hooks:
|
2022-03-14 05:53:03 +00:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
2021-12-10 08:48:00 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-05-05 22:52:55 +00:00
|
|
|
rev: v2.32.1
|
2021-12-10 08:48:00 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py37-plus]
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2022-03-29 08:57:02 +00:00
|
|
|
rev: 22.3.0
|
2021-12-10 08:48:00 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
rev: 5.10.1
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2022-04-04 08:01:56 +00:00
|
|
|
rev: v2.6.2
|
2021-12-10 08:48:00 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
|
|
rev: v2.1.0
|
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: shfmt
|
|
|
|
name: shfmt
|
|
|
|
language: golang
|
2022-02-08 09:27:54 +00:00
|
|
|
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@latest]
|
2021-12-10 08:48:00 +00:00
|
|
|
entry: shfmt
|
|
|
|
args: [-w]
|
|
|
|
types: [shell]
|
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2022-02-06 16:13:22 +00:00
|
|
|
rev: v0.8.0.4
|
2021-12-10 08:48:00 +00:00
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
args: [-x]
|