Skip to content

Commit 2452572

Browse files
committed
Merge branch 'main' into release/25.0.1
2 parents 1acc485 + 7e9c87a commit 2452572

Some content is hidden

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

51 files changed

+56
-86
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

build-project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
from os import PathLike
88
from pathlib import Path
99
from types import SimpleNamespace
10+
from typing import Union
1011

1112

1213
class EnvBuilder(venv.EnvBuilder):
1314
"""A subclass of venv.EnvBuilder that exposes the python executable command."""
1415

1516
def ensure_directories(
16-
self, env_dir: str | bytes | PathLike[str] | PathLike[bytes]
17+
self, env_dir: Union[str, bytes, "PathLike[str]", "PathLike[bytes]"]
1718
) -> SimpleNamespace:
1819
context = super().ensure_directories(env_dir)
1920
self.env_exec_cmd = context.env_exec_cmd

news/13156.bugfix.rst

Lines changed: 1 addition & 0 deletions

news/13182.trivial.rst

Lines changed: 1 addition & 0 deletions

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ select = [
184184
"W",
185185
"RUF100",
186186
"UP",
187+
"FA102", # future-required-type-annotation
187188
]
188189

189190
[tool.ruff.lint.isort]

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

0 commit comments

Comments
 (0)