Skip to content

Commit de6ec67

Browse files
pre-commit-ci[bot]ichard26
authored andcommitted
pre-commit autoupdate
updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 24.10.0](psf/black-pre-commit-mirror@24.4.2...24.10.0) - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.8.1](astral-sh/ruff-pre-commit@v0.5.6...v0.8.1) - [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](pre-commit/mirrors-mypy@v1.12.1...v1.13.0)
1 parent fe0925b commit de6ec67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: 'src/pip/_vendor/'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-builtin-literals
88
- id: check-added-large-files
@@ -17,18 +17,18 @@ repos:
1717
exclude: .patch
1818

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

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.5.6
25+
rev: v0.8.2
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.12.1
31+
rev: v1.13.0
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data

src/pip/_internal/cli/progress_bars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _raw_progress_bar(
6363
size: Optional[int],
6464
) -> Generator[bytes, None, None]:
6565
def write_progress(current: int, total: int) -> None:
66-
sys.stdout.write("Progress %d of %d\n" % (current, total))
66+
sys.stdout.write(f"Progress {current} of {total}\n")
6767
sys.stdout.flush()
6868

6969
current = 0

0 commit comments

Comments
 (0)