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

View file

@ -186,3 +186,10 @@
language: python language: python
types: [text] types: [text]
stages: [commit, push, manual] 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)$