From fbbf5343f9fbc46889ff65aed0fc1b7aea069247 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Sun, 9 Jul 2023 21:56:16 +0200 Subject: [PATCH] Add pre-commit for sphinx/myst Signed-off-by: Cristian Le --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2eaa1a1..aab9b05 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,18 @@ repos: additional_dependencies: - mdformat-gfm - mdformat-tables + exclude: docs\/.* + - repo: https://github.com/executablebooks/mdformat + # TODO: Temporarily separate docs formatiing + # https://github.com/executablebooks/mdformat/issues/234 + # TODO: Disabled due to lack of colon-fence support + rev: 0.7.16 + hooks: + - id: mdformat + stages: [ manual ] + additional_dependencies: + - mdformat-myst + files: doc\/(?!README).*\.md$ - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.23.0 hooks: