Skip to content
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ repos:
args: [--check, --diff]
stages: [manual]

- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-myst
files: ^docs/.*\.md$
stages: [pre-commit]

# check only, no modifications
- repo: local
hooks:
Expand All @@ -91,6 +100,7 @@ repos:
language: python
pass_filenames: true
files: ^(docs/|examples/(JUPYTER|COLAB)/|tools/).*(\.md|\.ipynb)$
exclude: ^tools/docs_audits/
args:
- --config
- tools/docs_and_notebooks_report_config.yml
Expand Down
Loading
Loading