Skip to content

Commit

Permalink
pre-commit to ignore api rst files
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 21, 2023
1 parent 8c5ed74 commit 9eecfea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"

exclude: docs/index.md | docs/api/
exclude: |
(?x)^(
docs/index.md|
docs/api/invert4geom.inversion.rst|
docs/api/invert4geom.plotting.rst|
docs/api/invert4geom.rst|
docs/api/invert4geom.synthetic.rst|
docs/api/invert4geom.utils.rst|
)$
repos:
# - repo: https://github.com/psf/black-pre-commit-mirror
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@
"use_repository_button": True,
"use_download_button": True,
"home_page_in_toc": False,
}
}

0 comments on commit 9eecfea

Please sign in to comment.