Skip to content

Commit eb169f4

Browse files
authored
Update Sphinx Lint and fix unnecessary parentheses in :func:s (#123960)
1 parent e07154f commit eb169f4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.3.4
3+
rev: v0.4.10
44
hooks:
55
- id: ruff
66
name: Run Ruff (lint) on Doc/
@@ -20,15 +20,15 @@ repos:
2020
files: ^Doc/
2121

2222
- repo: https://github.com/psf/black-pre-commit-mirror
23-
rev: 24.4.2
23+
rev: 24.8.0
2424
hooks:
2525
- id: black
2626
name: Run Black on Tools/jit/
2727
files: ^Tools/jit/
2828
language_version: python3.12
2929

3030
- repo: https://github.com/pre-commit/pre-commit-hooks
31-
rev: v4.5.0
31+
rev: v4.6.0
3232
hooks:
3333
- id: check-case-conflict
3434
- id: check-merge-conflict
@@ -42,7 +42,7 @@ repos:
4242
types_or: [c, inc, python, rst]
4343

4444
- repo: https://github.com/sphinx-contrib/sphinx-lint
45-
rev: v0.9.1
45+
rev: v1.0.0
4646
hooks:
4747
- id: sphinx-lint
4848
args: [--enable=default-role]

Doc/library/annotationlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Functions
315315

316316
* If eval_str is true, :func:`eval` is called on values of type
317317
:class:`!str`. (Note that :func:`!get_annotations` doesn't catch
318-
exceptions; if :func:`eval()` raises an exception, it will unwind
318+
exceptions; if :func:`eval` raises an exception, it will unwind
319319
the stack past the :func:`!get_annotations` call.)
320320
* If *eval_str* is false (the default), values of type :class:`!str` are
321321
unchanged.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Fix :func:`urllib.parse.urljoin` and :func:`urllib.parse.urldefrag` for URIs
2-
containing empty components. For example, :func:`!urljoin()` with relative
2+
containing empty components. For example, :func:`!urljoin` with relative
33
reference "?" now sets empty query and removes fragment.
44
Preserve empty components (authority, params, query, fragment) in :func:`!urljoin`.
55
Preserve empty components (authority, params, query) in :func:`!urldefrag`.

0 commit comments

Comments
 (0)