From: Thanh Ha Date: Sat, 11 May 2019 00:57:28 +0000 (-0400) Subject: Switch to pre-commit for rstcheck X-Git-Tag: pre-potassium~282 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=640e2b8ede2a10ba1911f8867ca9086ca455aa17 Switch to pre-commit for rstcheck Change-Id: Ic418c166691bc831cd4c310c657dbd8555f58f93 Signed-off-by: Thanh Ha --- 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]