Skip to content

Commit 8d64ec0

Browse files
committed
Fix formatting and misc linting
1 parent 6d86207 commit 8d64ec0

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

tests/functional/test_fast_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from os.path import basename
77
from typing import Iterable
88

9-
from pip._vendor.packaging.utils import canonicalize_name
109
import pytest
10+
from pip._vendor.packaging.utils import canonicalize_name
1111

1212
from pip._internal.utils.misc import hash_file
1313
from tests.lib import PipTestEnvironment, TestData, TestPipResult

tests/functional/test_install.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def test_pep518_refuses_conflicting_requires(
107107
)
108108
assert result.returncode != 0
109109
assert (
110-
f"Some build dependencies for {project_dir.as_uri()} conflict "
111-
"with PEP 517/518 supported "
112-
"requirements: setuptools==1.0 is incompatible with "
113-
"setuptools>=40.8.0."
114-
) in result.stderr, str(result)
110+
f"Some build dependencies for {project_dir.as_uri()} conflict "
111+
"with PEP 517/518 supported "
112+
"requirements: setuptools==1.0 is incompatible with "
113+
"setuptools>=40.8.0."
114+
) in result.stderr, str(result)
115115

116116

117117
def test_pep518_refuses_invalid_requires(
@@ -2307,7 +2307,9 @@ def test_error_all_yanked_files_and_no_pin(
23072307
)
23082308
# Make sure an error is raised
23092309
assert result.returncode == 1
2310-
assert "ERROR: No matching distribution found for simple\n" in result.stderr, str(result)
2310+
assert "ERROR: No matching distribution found for simple\n" in result.stderr, str(
2311+
result
2312+
)
23112313

23122314

23132315
@pytest.mark.parametrize(

tests/unit/resolution_resolvelib/test_requirement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from pathlib import Path
3-
from typing import Iterator, List, Tuple
3+
from typing import List, Tuple
44

55
import pytest
66
from pip._vendor.resolvelib import BaseReporter, Resolver

tests/unit/test_collector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,9 @@ def test_collect_sources__file_not_find_link(data: TestData) -> None:
909909
)
910910
assert not sources.find_links
911911
assert len(sources.index_urls) == 1
912-
assert isinstance(sources.index_urls[0], _IndexDirectorySource), "Directory specified as index should be treated as a page"
912+
assert isinstance(
913+
sources.index_urls[0], _IndexDirectorySource
914+
), "Directory specified as index should be treated as a page"
913915

914916

915917
def test_collect_sources__non_existing_path() -> None:

tests/unit/test_network_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
from pathlib import Path
3-
from typing import Iterator
43
from unittest.mock import Mock
54

65
import pytest

0 commit comments

Comments
 (0)