https://github.com/python/cpython/commit/eb169f40276a8611827770f02c4b82827c98e00f
commit: eb169f40276a8611827770f02c4b82827c98e00f
branch: main
author: Hugo van Kemenade <[email protected]>
committer: hugovk <[email protected]>
date: 2024-09-11T21:05:15+03:00
summary:

Update Sphinx Lint and fix unnecessary parentheses in `:func:`s (#123960)

files:
M .pre-commit-config.yaml
M Doc/library/annotationlib.rst
M Misc/NEWS.d/next/Library/2024-08-23-22-01-30.gh-issue-76960.vsANPu.rst

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b10be5b6bd9904..1ce4cb81511d8e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.3.4
+    rev: v0.4.10
     hooks:
       - id: ruff
         name: Run Ruff (lint) on Doc/
@@ -20,7 +20,7 @@ repos:
         files: ^Doc/
 
   - repo: https://github.com/psf/black-pre-commit-mirror
-    rev: 24.4.2
+    rev: 24.8.0
     hooks:
       - id: black
         name: Run Black on Tools/jit/
@@ -28,7 +28,7 @@ repos:
         language_version: python3.12
 
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.5.0
+    rev: v4.6.0
     hooks:
       - id: check-case-conflict
       - id: check-merge-conflict
@@ -42,7 +42,7 @@ repos:
         types_or: [c, inc, python, rst]
 
   - repo: https://github.com/sphinx-contrib/sphinx-lint
-    rev: v0.9.1
+    rev: v1.0.0
     hooks:
       - id: sphinx-lint
         args: [--enable=default-role]
diff --git a/Doc/library/annotationlib.rst b/Doc/library/annotationlib.rst
index ecf56ed50b6a2a..1e72c5421674bc 100644
--- a/Doc/library/annotationlib.rst
+++ b/Doc/library/annotationlib.rst
@@ -315,7 +315,7 @@ Functions
 
    * If eval_str is true, :func:`eval` is called on values of type
      :class:`!str`. (Note that :func:`!get_annotations` doesn't catch
-     exceptions; if :func:`eval()` raises an exception, it will unwind
+     exceptions; if :func:`eval` raises an exception, it will unwind
      the stack past the :func:`!get_annotations` call.)
    * If *eval_str* is false (the default), values of type :class:`!str` are
      unchanged.
diff --git 
a/Misc/NEWS.d/next/Library/2024-08-23-22-01-30.gh-issue-76960.vsANPu.rst 
b/Misc/NEWS.d/next/Library/2024-08-23-22-01-30.gh-issue-76960.vsANPu.rst
index 7ce2baee3f9ab6..acb0a991e4c93d 100644
--- a/Misc/NEWS.d/next/Library/2024-08-23-22-01-30.gh-issue-76960.vsANPu.rst
+++ b/Misc/NEWS.d/next/Library/2024-08-23-22-01-30.gh-issue-76960.vsANPu.rst
@@ -1,5 +1,5 @@
 Fix :func:`urllib.parse.urljoin` and :func:`urllib.parse.urldefrag` for URIs
-containing empty components. For example, :func:`!urljoin()` with relative
+containing empty components. For example, :func:`!urljoin` with relative
 reference "?" now sets empty query and removes fragment.
 Preserve empty components (authority, params, query, fragment) in 
:func:`!urljoin`.
 Preserve empty components (authority, params, query) in :func:`!urldefrag`.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to