Skip to content

Commit

Permalink
Update pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jan 16, 2025
1 parent 446ed23 commit a54aece
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ repos:
args: [--fix, lf]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.1"
rev: "v0.9.2"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: isort
- name: black
id: black
args: ["--line-length", "79"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def entire_domain(host):

intersphinx_mapping = {
"jsonschema": (
"https://python-jsonschema.readthedocs.io/en/latest/", None,
"https://python-jsonschema.readthedocs.io/en/latest/",
None,
),
"packaging": ("https://packaging.python.org/", None),
"python": ("https://docs.python.org/", None),
Expand Down
2 changes: 2 additions & 0 deletions sphinx_json_schema_spec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Sphinx support for interlinking to the JSON Schema specifications.
"""

from contextlib import suppress
from datetime import UTC, datetime
from importlib import metadata
Expand Down Expand Up @@ -186,4 +187,5 @@ def _missing_reference(app, env, node, contnod):

text = contnod.astext() if node["refexplicit"] else target
return nodes.reference(text, text, internal=False, refuri=uri)

return _missing_reference

0 comments on commit a54aece

Please sign in to comment.