Skip to content

Commit

Permalink
DX: set correct ignore paths for sphinx-autobuild (#507)
Browse files Browse the repository at this point in the history
* MAINT: update lock files
  • Loading branch information
redeboer authored Jan 29, 2025
1 parent 2e16723 commit a08a3c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.3
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -78,12 +78,12 @@ repos:
exclude: (?x)^(labels/.*\.toml)$

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.0
rev: v8.17.1
hooks:
- id: cspell

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.0.3
rev: 3.2.0
hooks:
- id: editorconfig-checker
name: editorconfig
Expand All @@ -104,6 +104,6 @@ repos:
- python

- repo: https://github.com/ComPWA/pyright-pre-commit
rev: v1.1.391
rev: v1.1.392
hooks:
- id: pyright
21 changes: 12 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ commands = [
"--keep-going",
"--show-traceback",
"docs/",
"docs/_build/html",
"docs/_build/html/",
],
]
description = "Build documentation and API through Sphinx"
Expand All @@ -345,16 +345,19 @@ base = []
commands = [
[
"sphinx-autobuild",
"--ignore=docs/_build",
"--ignore=docs/api",
"--open-browser",
"--port=0",
"--re-ignore='.*\\.egg-info'",
"--re-ignore='.*/__pycache__/.*'",
"--watch=docs",
"--re-ignore=/__pycache__(/.*)?$",
"--re-ignore=/_build(/.*)?$",
"--re-ignore=/\\.egg-info(/.*)?$",
"--re-ignore=/api(/.*)?$",
"--re-ignore=/docs$",
"--re-ignore=/version\\.py$",
"--re-ignore=\\.egg-info(/.*)?$",
"--re-ignore=\\.png$",
"--re-ignore=\\.svg$",
"--watch=src",
"docs/",
"docs/_build/html",
"docs/_build/html/",
],
]
description = "Set up a server to directly preview changes to the HTML pages"
Expand All @@ -367,7 +370,7 @@ commands = [
"--builder=linkcheck",
"--show-traceback",
"docs/",
"docs/_build/linkcheck",
"docs/_build/linkcheck/",
],
]
description = "Check external links in the documentation (requires internet connection)"
Expand Down

0 comments on commit a08a3c8

Please sign in to comment.