Skip to content

Commit 71cb63f

Browse files
committed
Upgrade linters
1 parent e88d39a commit 71cb63f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
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.4.0
5+
rev: v4.5.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
20-
rev: 23.7.0
20+
rev: 23.12.1
2121
hooks:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.1.4
25+
rev: v0.1.9
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.6.1
31+
rev: v1.8.0
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data

src/pip/_internal/req/req_uninstall.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ def compress_for_output_listing(paths: Iterable[str]) -> Tuple[Set[str], Set[str
172172
folders.add(os.path.dirname(path))
173173
files.add(path)
174174

175-
# probably this one https://github.com/python/mypy/issues/390
176-
_normcased_files = set(map(os.path.normcase, files)) # type: ignore
175+
_normcased_files = set(map(os.path.normcase, files))
177176

178177
folders = compact(folders)
179178

tests/unit/test_vcs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,7 @@ def test_version_control__run_command__fails(
458458
with mock.patch("pip._internal.vcs.versioncontrol.call_subprocess") as call:
459459
call.side_effect = exc_cls
460460
with pytest.raises(BadCommand, match=msg_re.format(name=vcs_cls.name)):
461-
# https://github.com/python/mypy/issues/3283
462-
vcs_cls.run_command([]) # type: ignore[arg-type]
461+
vcs_cls.run_command([])
463462

464463

465464
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)