add markdownlint and bump other versions

This commit is contained in:
Robin Stephenson 2019-05-20 16:41:20 +01:00
parent 990d3e4127
commit d404f26c5c
2 changed files with 15 additions and 7 deletions

View file

@ -12,33 +12,34 @@ repos:
- id: name-tests-test
- id: double-quote-string-fixer
- id: requirements-txt-fixer
- id: check-markdown
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.1
rev: 3.7.7
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.3
rev: v1.4.4
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/pre-commit
rev: v1.14.2
rev: v1.16.1
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.3.5
rev: v1.4.0
hooks:
- id: reorder-python-imports
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v1.11.1
rev: v1.17.1
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/add-trailing-comma
rev: v0.7.1
rev: v1.0.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.660
rev: v0.701
hooks:
- id: mypy
language_version: python3

View file

@ -186,3 +186,10 @@
language: python
types: [text]
stages: [commit, push, manual]
- id: check-markdown
name: Markdownlint
description: This hook runs markdownlint on Markdown files.
entry: mdl
language: system
types: [text]
files: \.(md|mdown|markdown)$