Verified Commit f1367d08 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Remove unmaintained flake8 pre-commit hook, update others

parent ac525344
Loading
Loading
Loading
Loading
+10 −24
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ repos:
  - id: check-hooks-apply

- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v3.4.0
  rev: v4.6.0
  hooks:
  - id: check-added-large-files
  - id: check-case-conflict
@@ -28,12 +28,12 @@ repos:
    stages: [commit]

- repo: https://github.com/jorisroovers/gitlint
  rev: v0.15.0
  rev: v0.19.1
  hooks:
  - id: gitlint

- repo: https://code.kodo.org.uk/dom/pre-commit-hooks
  rev: v0.6
  rev: v0.6.1
  hooks:
  - id: check-executable-modes
  - id: check-for-squash
@@ -43,49 +43,35 @@ repos:
  - id: protect-first-parent

- repo: https://github.com/pre-commit/pygrep-hooks
  rev: v1.8.0
  rev: v1.10.0
  hooks:
  - id: python-no-eval
  - id: python-no-log-warn
  - id: python-use-type-annotations

- repo: https://github.com/hakancelik96/unimport
  rev: 0.8.4
- repo: https://github.com/hakancelikdev/unimport
  rev: 1.2.1
  hooks:
  - id: unimport
    args: [--remove, --exclude=types.py|__init__.py]
    stages: [commit, manual]

- repo: https://github.com/timothycrosley/isort
  rev: 5.7.0
- repo: https://github.com/pycqa/isort
  rev: 5.13.2
  hooks:
  - id: isort
    types: [python]
    stages: [commit, manual]

- repo: https://github.com/asottile/add-trailing-comma
  rev: v2.1.0
  rev: v3.1.0
  hooks:
  - id: add-trailing-comma
    args: [--py36-plus]
    stages: [commit, manual]

- repo: https://gitlab.com/pycqa/flake8
  rev: 3.8.3
  hooks:
  - id: flake8
    args: ["--config=setup.cfg"]
    additional_dependencies:
    - flake8-bugbear
    - flake8-docstrings
    - flake8-print
    - flake8-requirements
    - flake8-return
    - flake8-sfs
    - flake8-tabs

- repo: https://github.com/pre-commit/mirrors-mypy
  rev: v0.910
  rev: v1.11.1
  hooks:
  - id: mypy
    args: [--config-file=setup.cfg]