From 640e2b8ede2a10ba1911f8867ca9086ca455aa17 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 10 May 2019 20:57:28 -0400 Subject: [PATCH] Switch to pre-commit for rstcheck Change-Id: Ic418c166691bc831cd4c310c657dbd8555f58f93 Signed-off-by: Thanh Ha --- .coafile | 5 ----- .pre-commit-config.yaml | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.coafile b/.coafile index af63ba1eb8..5b849f5614 100644 --- a/.coafile +++ b/.coafile @@ -1,8 +1,3 @@ -[reStructuredText] -bears = RSTcheckBear -files = **.rst -ignore = .** - [Python] bears = PEP8Bear files = **/*.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91ee655f9f..b726c5a881 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,3 +9,12 @@ rev: v0.11.0 hooks: - id: gitlint + +- repo: local + hooks: + - id: rstcheck + name: rstcheck + entry: rstcheck + files: '\.rst' + language: python + additional_dependencies: [rstcheck, sphinx] -- 2.36.6