Skip to content

Commit 3abd1cf

Browse files
committed
Fix lint
1 parent 8c93019 commit 3abd1cf

18 files changed

+31
-31
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ line-length = 137
114114
exclude = [
115115
"get-pipenv.py",
116116
"pipenv/patched/*",
117+
"pipenv/tests/fixtures/*",
118+
"pipenv/tests/pypi/*",
119+
"pipenv/tests/test_artifacts/*",
117120
"pipenv/vendor/*",
118121
]
119122

tests/integration/conftest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1+
import contextlib
12
import errno
23
import functools
34
import json
45
import logging
56
import os
67
import shutil
7-
from shutil import rmtree as _rmtree
8+
import subprocess
89
import sys
910
import warnings
1011
from pathlib import Path
12+
from shutil import rmtree as _rmtree
1113
from tempfile import TemporaryDirectory
12-
import subprocess
1314

1415
import pytest
15-
from pipenv.patched.pip._vendor import requests
16-
from pipenv.vendor import tomlkit
1716

18-
from pipenv.utils.processes import subprocess_run
17+
from pipenv.patched.pip._vendor import requests
1918
from pipenv.utils.funktools import handle_remove_readonly
19+
from pipenv.utils.processes import subprocess_run
2020
from pipenv.utils.shell import temp_environ
21-
import contextlib
21+
from pipenv.vendor import tomlkit
2222

2323
log = logging.getLogger(__name__)
2424
warnings.simplefilter("default", category=ResourceWarning)

tests/integration/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import re
33
import sys
44
from pathlib import Path
5-
import pytest
65

6+
import pytest
77

88
from pipenv.utils.processes import subprocess_run
99
from pipenv.utils.shell import normalize_drive

tests/integration/test_import_requirements.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
import pytest
66

77
from pipenv.patched.pip._internal.operations.prepare import File
8-
9-
from pipenv.utils.requirements import import_requirements
108
from pipenv.project import Project
9+
from pipenv.utils.requirements import import_requirements
1110

1211

1312
@pytest.mark.cli

tests/integration/test_install_markers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import pytest
44
from flaky import flaky
55

6-
76
from pipenv.project import Project
87
from pipenv.utils.shell import temp_environ
98

tests/integration/test_install_uri.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
@pytest.mark.install
1212
@pytest.mark.needs_internet
1313
def test_basic_vcs_install_with_env_var(pipenv_instance_pypi):
14-
from pipenv.cli import cli
1514
from click.testing import (
1615
CliRunner,
1716
) # not thread safe but macos and linux will expand the env var otherwise
1817

18+
from pipenv.cli import cli
19+
1920
with pipenv_instance_pypi() as p:
2021
# edge case where normal package starts with VCS name shouldn't be flagged as vcs
2122
os.environ["GIT_HOST"] = "github.com"

tests/integration/test_lock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from pathlib import Path
33

44
import pytest
5-
6-
75
from flaky import flaky
6+
87
from pipenv.utils.shell import temp_environ
98

109

tests/integration/test_lockfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from collections import defaultdict
21
import json
2+
from collections import defaultdict
3+
34
import pytest
45

56
from pipenv.project import Project

tests/integration/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import pytest
55

66
from pipenv.project import Project
7+
from pipenv.utils.fileutils import normalize_path
78
from pipenv.utils.shell import temp_environ
89
from pipenv.vendor.plette import Pipfile
9-
from pipenv.utils.fileutils import normalize_path
1010

1111

1212
@pytest.mark.project

tests/integration/test_requirements.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import json
22
import os
3+
34
import pytest
45

5-
from pipenv.utils.shell import temp_environ
66
from pipenv.utils.requirements import requirements_from_lockfile
7+
from pipenv.utils.shell import temp_environ
78

89

910
@pytest.mark.requirements

0 commit comments

Comments
 (0)