Skip to content

Commit 7e9c87a

Browse files
authored
Merge pull request #13193 from notatallshaw/black-25.1.0
Update Black (2025 style)
2 parents 38e9bbe + b2c367d commit 7e9c87a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+47
-84
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ c7ee560e00b85f7486b452c14ff49e4737996eda # Blacken tools/
3434
94999255d5ede440c37137d210666fdf64302e75 # Reformat the codebase, with black
3535
585037a80a1177f1fa92e159a7079855782e543e # Cleanup implicit string concatenation
3636
8a6f6ac19b80a6dc35900a47016c851d9fcd2ee2 # Blacken src/pip/_internal/resolution directory
37+
acfcae8941bb12ecfc372a05c875a7b414992604 # Reformat with Black's 2025 code style

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
exclude: .patch
1818

1919
- repo: https://github.com/psf/black-pre-commit-mirror
20-
rev: 24.10.0
20+
rev: 25.1.0
2121
hooks:
2222
- id: black
2323

noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Automation using nox.
2-
"""
1+
"""Automation using nox."""
32

43
import argparse
54
import glob

src/pip/_internal/build_env.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Build Environment used for isolation during sdist building
2-
"""
1+
"""Build Environment used for isolation during sdist building"""
32

43
import logging
54
import os

src/pip/_internal/cache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Cache Management
2-
"""
1+
"""Cache Management"""
32

43
import hashlib
54
import json

src/pip/_internal/cli/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"""Subpackage containing all of pip's command line interface related code
2-
"""
1+
"""Subpackage containing all of pip's command line interface related code"""
32

43
# This file intentionally does not import submodules

src/pip/_internal/cli/autocompletion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Logic that powers autocompletion installed by ``pip completion``.
2-
"""
1+
"""Logic that powers autocompletion installed by ``pip completion``."""
32

43
import optparse
54
import os

src/pip/_internal/cli/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Primary application entrypoint.
2-
"""
1+
"""Primary application entrypoint."""
32

43
import locale
54
import logging

src/pip/_internal/cli/main_parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""A single place for constructing and exposing the main parser
2-
"""
1+
"""A single place for constructing and exposing the main parser"""
32

43
import os
54
import subprocess

src/pip/_internal/index/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
"""Index interaction code
2-
"""
1+
"""Index interaction code"""

0 commit comments

Comments
 (0)