Skip to content

Commit 5efa3e8

Browse files
authored
Merge pull request #12454 from sbidoul/upgrade-linters-sbi
Upgrade linters
2 parents 9f5082e + f63d4c1 commit 5efa3e8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 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
@@ -16,19 +16,19 @@ repos:
1616
- id: trailing-whitespace
1717
exclude: .patch
1818

19-
- repo: https://github.com/psf/black
20-
rev: 23.7.0
19+
- repo: https://github.com/psf/black-pre-commit-mirror
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)