From d404f26c5cc38adc0ac3a7a74ebfb0eba5b565a5 Mon Sep 17 00:00:00 2001 From: Robin Stephenson Date: Mon, 20 May 2019 16:41:20 +0100 Subject: [PATCH] add markdownlint and bump other versions --- .pre-commit-config.yaml | 15 ++++++++------- .pre-commit-hooks.yaml | 7 +++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f77c36e..c5b1698 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 9396d55..586265c 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -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)$