Skip to content

Commit 61c6e3f

Browse files
committed
⬆️ Update pre-commit hooks
* Reformat for black’s new 2025 stable style
1 parent 12fdd63 commit 61c6e3f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ repos:
1919
- id: sphinx-lint
2020
types: [rst]
2121
- repo: https://github.com/pycqa/isort
22-
rev: 5.13.2
22+
rev: 6.0.0
2323
hooks:
2424
- id: isort
2525
additional_dependencies: ["toml"]
2626
entry: isort --profile=black
2727
name: isort (python)
2828
- repo: https://github.com/psf/black
29-
rev: 24.10.0
29+
rev: 25.1.0
3030
hooks:
3131
- id: black
3232
- repo: https://github.com/adamchainz/blacken-docs
@@ -37,7 +37,7 @@ repos:
3737
additional_dependencies:
3838
- black
3939
- repo: https://github.com/codespell-project/codespell
40-
rev: v2.4.0
40+
rev: v2.4.1
4141
hooks:
4242
- id: codespell
4343
- repo: local

docs/modules/wcargv_stdin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Reads a file or stdin and returns the number of lines, words and characters –
2-
similar to the UNIX wc utility."""
2+
similar to the UNIX wc utility."""
33

44
import sys
55

docs/types/strings/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Strings
44
The processing of character strings is one of Python’s strengths. There are many
55
options for limiting character strings:
66

7+
.. blacken-docs:off
8+
79
.. code-block:: python
810
911
"A string in double quotes can contain 'single quotes'."
@@ -12,6 +14,8 @@ options for limiting character strings:
1214
"""This is a string in triple double quotes, the only string that contains
1315
real line breaks."""
1416
17+
.. blacken-docs:on
18+
1519
Character strings can be characterised by single (``' '``), double(``" "``),
1620
triple single (``''' '''``) or triple double (``""" """``) quotation marks.
1721

0 commit comments

Comments
 (0)