From 0eac7527fc0d3ed90bc4dcc6404009b7d39d35bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Wed, 27 Jan 2021 10:12:45 +0100 Subject: [PATCH] Augment .pre-commit (#257) Avoid commit to master branch, and check RST files. --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df759a129..d80bf7342 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,8 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.5.0 hooks: + - id: no-commit-to-branch + args: ['--branch', 'master'] - id: check-yaml - id: debug-statements - id: end-of-file-fixer @@ -19,3 +21,9 @@ repos: rev: 3.8.4 hooks: - id: flake8 + +- repo: https://github.com/lorman/pre-commit-rstcheck + rev: '' + hooks: + - id: rstcheck + args: ['-r', 'docs']