Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ repos:
files: src/.*$
- id: ruff-format
files: src/.*$
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.5
hooks:
- id: rstcheck
args: ["--config", "pyproject.toml"]
additional_dependencies:
- 'rstcheck[sphinx,toml]'
exclude:
(?x)
^docs/source/_templates/.*$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
Expand Down
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,25 @@ select = [
# PyPI hard limit is 1GiB, but try to keep this as small as possible
max_allowed_size_compressed = '2Mi'

[tool.rstcheck]
report_level = "INFO"

# rstcheck only knows about directives coming from 'docutils', not
# those supplied by extensions. This list of ignores suppresses errors
# like "no directive entry".
ignore_directives = [
# rstcheck does not understand 'sphinx.ext.auto*' directives
"autoclass",
"automodule",
"autosummary",
]

ignore_messages = '''(?x)(
# ignore links that look "unused" because they're there to provide stable anchors in hyperlinks
Hyperlink\ target\ .*\ is\ not\ referenced
)
'''

[tool.ruff]
line-length = 120

Expand Down