From e077e95f690c7163d832e2a3f31028c92d3dcdbd Mon Sep 17 00:00:00 2001 From: lethosor Date: Sun, 1 May 2022 13:23:41 -0400 Subject: [PATCH] Add pre-commit hook to check Authors.rst --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47f314e2a..26d135ca2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,4 +32,12 @@ repos: exclude_types: - json # specific to dfhack: +- repo: local + hooks: + - id: authors-rst + name: Check Authors.rst + language: python + entry: python3 ci/authors-rst.py + files: docs/Authors\.rst + pass_filenames: false exclude: '^(depends/|data/examples/.*\.json$|.*\.diff$)'