Skip to content

Commit a54aece

Browse files
committed
Update pre-commit hooks.
1 parent 446ed23 commit a54aece

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.pre-commit-config.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ repos:
1414
args: [--fix, lf]
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: "v0.9.1"
17+
rev: "v0.9.2"
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --exit-non-zero-on-fix]
21-
- repo: https://github.com/PyCQA/isort
22-
rev: 5.13.2
21+
- repo: https://github.com/psf/black
22+
rev: 24.10.0
2323
hooks:
24-
- id: isort
24+
- name: black
25+
id: black
26+
args: ["--line-length", "79"]
2527
- repo: https://github.com/pre-commit/mirrors-prettier
2628
rev: "v4.0.0-alpha.8"
2729
hooks:

docs/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def entire_domain(host):
5050

5151
intersphinx_mapping = {
5252
"jsonschema": (
53-
"https://python-jsonschema.readthedocs.io/en/latest/", None,
53+
"https://python-jsonschema.readthedocs.io/en/latest/",
54+
None,
5455
),
5556
"packaging": ("https://packaging.python.org/", None),
5657
"python": ("https://docs.python.org/", None),

sphinx_json_schema_spec/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Sphinx support for interlinking to the JSON Schema specifications.
33
"""
4+
45
from contextlib import suppress
56
from datetime import UTC, datetime
67
from importlib import metadata
@@ -186,4 +187,5 @@ def _missing_reference(app, env, node, contnod):
186187

187188
text = contnod.astext() if node["refexplicit"] else target
188189
return nodes.reference(text, text, internal=False, refuri=uri)
190+
189191
return _missing_reference

0 commit comments

Comments
 (0)