commit dc0622f4f82576adfa419cc2532074f0a0d9e534 parent 17da5e8586f040c0c0d797c532ad1bf7faeec0e4 Author: Luís Ferreira <[email protected]> Date: Mon, 3 Jan 2022 22:56:05 +0000 pre-commit: add more hooks Signed-off-by: Luís Ferreira <[email protected]> Diffstat:
M | .pre-commit-config.yaml | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +fail_fast: true repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 @@ -15,8 +16,32 @@ repos: - id: destroyed-symlinks - id: detect-private-key - id: fix-encoding-pragma + args: [--remove] - id: no-commit-to-branch args: [--branch, master] +- repo: https://github.com/pre-commit-ci/pre-commit-ci-config + rev: v1.5.1 + hooks: + - id: check-pre-commit-ci-config +- repo: https://github.com/asottile/reorder_python_imports + rev: v2.6.0 + hooks: + - id: reorder-python-imports + args: [--py39-plus] +- repo: https://github.com/asottile/add-trailing-comma + rev: v2.2.1 + hooks: + - id: add-trailing-comma + args: [--py36-plus] +- repo: https://github.com/asottile/pyupgrade + rev: v2.31.0 + hooks: + - id: pyupgrade + args: [--py39-plus] +- repo: https://github.com/asottile/setup-cfg-fmt + rev: v1.20.0 + hooks: + - id: setup-cfg-fmt ci: autofix_prs: false autoupdate_commit_msg: 'pre-commit: bump repositories'