Skip to content

Commit 78ab4cf

Browse files
authored
Bump all linters other than mypy (#11901)
1 parent 4a8693a commit 78ab4cf

27 files changed

+13
-35
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 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.3.0
5+
rev: v4.4.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: 22.6.0
20+
rev: 23.1.0
2121
hooks:
2222
- id: black
2323

2424
- repo: https://github.com/PyCQA/flake8
25-
rev: 4.0.1
25+
rev: 6.0.0
2626
hooks:
2727
- id: flake8
2828
additional_dependencies: [
29-
'flake8-bugbear==22.10.27',
30-
'flake8-logging-format==0.9.0',
31-
'flake8-implicit-str-concat==0.3.0',
29+
'flake8-bugbear',
30+
'flake8-logging-format',
31+
'flake8-implicit-str-concat',
3232
]
3333
exclude: tests/data
3434

@@ -56,7 +56,7 @@ repos:
5656
]
5757

5858
- repo: https://github.com/pre-commit/pygrep-hooks
59-
rev: v1.9.0
59+
rev: v1.10.0
6060
hooks:
6161
- id: python-no-log-warn
6262
- id: python-no-eval

docs/pip_sphinxext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ def run(self) -> List[nodes.Node]:
254254
lines = []
255255
# Create a tab for each OS
256256
for os, variant in os_variants.items():
257-
258257
# Unpack the values
259258
prompt = variant["prompt"]
260259
highlighter = variant["highlighter"]

src/pip/_internal/commands/cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class CacheCommand(Command):
3737
"""
3838

3939
def add_options(self) -> None:
40-
4140
self.cmd_opts.add_option(
4241
"--format",
4342
action="store",

src/pip/_internal/commands/check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class CheckCommand(Command):
2020
%prog [options]"""
2121

2222
def run(self, options: Values, args: List[str]) -> int:
23-
2423
package_set, parsing_probs = create_package_set_from_installed()
2524
missing, conflicting = check_package_set(package_set)
2625

src/pip/_internal/commands/download.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def add_options(self) -> None:
7676

7777
@with_cleanup
7878
def run(self, options: Values, args: List[str]) -> int:
79-
8079
options.ignore_installed = True
8180
# editable doesn't really make sense for `pip download`, but the bowels
8281
# of the RequirementSet code require that property.

src/pip/_internal/commands/wheel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class WheelCommand(RequirementCommand):
4343
%prog [options] <archive url/path> ..."""
4444

4545
def add_options(self) -> None:
46-
4746
self.cmd_opts.add_option(
4847
"-w",
4948
"--wheel-dir",

src/pip/_internal/index/sources.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def build_source(
171171
expand_dir: bool,
172172
cache_link_parsing: bool,
173173
) -> Tuple[Optional[str], Optional[LinkSource]]:
174-
175174
path: Optional[str] = None
176175
url: Optional[str] = None
177176
if os.path.exists(location): # Is a local path.

src/pip/_internal/models/search_scope.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def get_formatted_locations(self) -> str:
7979
redacted_index_urls = []
8080
if self.index_urls and self.index_urls != [PyPI.simple_url]:
8181
for url in self.index_urls:
82-
8382
redacted_index_url = redact_auth_from_url(url)
8483

8584
# Parse the URL

src/pip/_internal/network/session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ def cert_verify(
316316

317317

318318
class PipSession(requests.Session):
319-
320319
timeout: Optional[int] = None
321320

322321
def __init__(

src/pip/_internal/operations/install/legacy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def install(
6969
unpacked_source_directory: str,
7070
req_description: str,
7171
) -> bool:
72-
7372
header_dir = scheme.headers
7473

7574
with TempDirectory(kind="record") as temp_dir:

0 commit comments

Comments
 (0)