Commit 908efc99 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add mypy and gitlint pre-commit hooks

parent 10e117a0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
[mypy]

[flake8]
max-line-length = 92
max-doc-length = 92
+11 −0
Original line number Diff line number Diff line
@@ -16,6 +16,11 @@ repos:
  - id: end-of-file-fixer
  - id: trailing-whitespace

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

- repo: local
  hooks:
  - id: copyright-notice
@@ -72,3 +77,9 @@ repos:
  hooks:
  - id: pylint
    args: ["--rcfile=.lint", "--fail-under=9.0"]

- repo: https://code.kodo.org.uk/dom/pre-commit-mypy
  rev: v0.812
  hooks:
  - id: mypy
    args: ["--config-file=.lint"]