From 8d401cdb9df6fe4b349ff246ef3ec93f87254fc7 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 29 Jul 2018 15:46:06 -0700 Subject: [PATCH] Use upstream rst-backticks hook --- .pre-commit-config.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cae90a428..635d8452f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,10 @@ repos: rev: v1.2.0 hooks: - id: pyupgrade +- repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.0.0 + hooks: + - id: rst-backticks - repo: local hooks: - id: rst @@ -34,8 +38,3 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] python_version: python3.6 - - id: rst-backticks - name: rst ``code`` is two backticks - entry: ' `[^`]+[^_]`([^_]|$)' - language: pygrep - types: [rst]