Skip to content

Commit

Permalink
Apply isort. Ref #240
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 2, 2024
1 parent 32e5fea commit b7ee725
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)
from .file_util import move_file
from .spawn import spawn
from .util import execute, split_quoted, is_mingw
from .util import execute, is_mingw, split_quoted


class CCompiler:
Expand Down
1 change: 0 additions & 1 deletion distutils/command/install_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import functools
import os

from typing import Iterable

from ..core import Command
Expand Down
1 change: 0 additions & 1 deletion distutils/spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import subprocess
import sys
import warnings

from typing import Mapping

from ._log import log
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_archive_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
from distutils.spawn import spawn
from distutils.tests import support
from os.path import splitdrive
from test.support import patch

import path
import pytest
from test.support import patch

from .compat.py38 import check_warnings
from .unix_compat import UID_0_SUPPORT, grp, pwd, require_uid_0, require_unix_id
Expand Down
3 changes: 1 addition & 2 deletions distutils/tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import sys
from distutils.command.build import build
from distutils.tests import support
from sysconfig import get_config_var
from sysconfig import get_platform
from sysconfig import get_config_var, get_platform


class TestBuild(support.TempdirManager):
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
fixup_build_ext,
)
from io import StringIO
from test import support

import jaraco.path
import path
import pytest
from test import support

from .compat import py38 as import_helper

Expand Down
1 change: 0 additions & 1 deletion distutils/tests/test_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
import pathlib
import warnings

from distutils.extension import Extension, read_setup_file

import pytest
Expand Down
5 changes: 2 additions & 3 deletions distutils/tests/test_install_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

import os
import pathlib

import pytest

from distutils.command.install_data import install_data
from distutils.tests import support

import pytest


@pytest.mark.usefixtures('save_env')
class TestInstallData(
Expand Down
8 changes: 4 additions & 4 deletions distutils/tests/test_mingwccompiler.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

from distutils.util import split_quoted, is_mingw
from distutils.errors import DistutilsPlatformError, CCompilerError
from distutils import sysconfig
from distutils.errors import CCompilerError, DistutilsPlatformError
from distutils.util import is_mingw, split_quoted

import pytest


class TestMingw32CCompiler:
Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from distutils.errors import DistutilsExecError
from distutils.spawn import find_executable, spawn
from distutils.tests import support
from test.support import unix_shell

import path
import pytest
from test.support import unix_shell

from .compat import py38 as os_helper

Expand Down
2 changes: 1 addition & 1 deletion distutils/tests/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from distutils import sysconfig
from distutils.ccompiler import new_compiler # noqa: F401
from distutils.unixccompiler import UnixCCompiler
from test.support import swap_item

import jaraco.envs
import path
import pytest
from jaraco.text import trim
from test.support import swap_item


def _gen_makefile(root, contents):
Expand Down

0 comments on commit b7ee725

Please sign in to comment.