Commit 9b759c4e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Update pre-commit config

parent 14d4ec28
Loading
Loading
Loading
Loading
+39 −7
Original line number Diff line number Diff line
@@ -5,22 +5,48 @@ repos:
  - id: check-hooks-apply

- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.3.0
  rev: v3.4.0
  hooks:
  - id: check-added-large-files
  - id: check-byte-order-marker
    stages: [commit]
  - id: check-case-conflict
    stages: [commit]
  - id: check-docstring-first
    stages: [commit]
  - id: check-merge-conflict
    stages: [commit]
  - id: check-toml
    stages: [commit]
  - id: check-yaml
    stages: [commit]
  - id: debug-statements
    stages: [commit]
  - id: destroyed-symlinks
    stages: [commit]
  - id: end-of-file-fixer
    stages: [commit]
  - id: fix-byte-order-marker
    stages: [commit]
  - id: fix-encoding-pragma
    args: [--remove]
    stages: [commit]
  - id: mixed-line-ending
    args: [--fix=lf]
    stages: [commit]
  - id: trailing-whitespace
    exclude_types: [markdown, plain-text]
    stages: [commit]

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

- repo: https://github.com/jumanjihouse/pre-commit-hooks
  rev: 2.1.5
  hooks:
  - id: protect-first-parent

- repo: local
  hooks:
  - id: copyright-notice
@@ -38,26 +64,31 @@ repos:
    stages: [push]

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

- repo: https://github.com/hakancelik96/unimport
  rev: 0.2.7
  rev: 0.7.4
  hooks:
  - id: unimport
    args: [--remove]
    stages: [commit]

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

- repo: https://gitlab.com/pycqa/flake8
  rev: 3.8.3
  rev: 3.8.4
  hooks:
  - id: flake8
    args: ["--config=.lint"]
@@ -70,6 +101,7 @@ repos:
    - flake8-return
    - flake8-sfs
    - flake8-tabs
    stages: [commit]

- repo: https://code.kodo.org.uk/dom/pre-commit-pylint
  rev: v2.6.2-1