Skip to content

Commit 12842c1

Browse files
style: pre-commit fixes
1 parent 193a066 commit 12842c1

File tree

7 files changed

+4
-13
lines changed

7 files changed

+4
-13
lines changed

src/scikit_build_core/_compat/importlib/metadata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from __future__ import annotations
22

3+
import importlib.metadata as _metadata
34
import sys
45
import typing
5-
6-
import importlib.metadata as _metadata
76
from importlib.metadata import PathDistribution, version
87

9-
108
if typing.TYPE_CHECKING:
119
if sys.version_info < (3, 8):
1210
from importlib_metadata import EntryPoints

src/scikit_build_core/_compat/typing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import sys
44
import typing
5-
65
from typing import Literal, Protocol
76

87
if sys.version_info < (3, 9):

tests/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
import subprocess
99
import sys
1010
import sysconfig
11+
from importlib import metadata
1112
from pathlib import Path
13+
from typing import Literal, overload
1214

1315
import virtualenv as _virtualenv
1416

15-
from importlib import metadata
16-
from typing import Literal, overload
17-
1817
if sys.version_info < (3, 11):
1918
import tomli as tomllib
2019
else:

tests/test_dynamic_metadata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import importlib
44
import shutil
55
import subprocess
6-
import sys
76
import types
87
import zipfile
98
from pathlib import Path

tests/test_fortran.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import shutil
2-
import sys
32
import sysconfig
43
import zipfile
54
from pathlib import Path

tests/test_pyproject_pep517.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ def test_pep517_wheel_source_dir(virtualenv):
249249
p = zipfile.Path(f)
250250
file_names = [p.name for p in p.iterdir()]
251251
metadata = p.joinpath("cmake_example-0.0.1.dist-info/METADATA").read_text()
252-
wheel_metadata = p.joinpath(
253-
"cmake_example-0.0.1.dist-info/WHEEL"
254-
).read_text()
252+
wheel_metadata = p.joinpath("cmake_example-0.0.1.dist-info/WHEEL").read_text()
255253
entry_points = p.joinpath(
256254
"cmake_example-0.0.1.dist-info/entry_points.txt"
257255
).read_text()

tests/test_simplest_c.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import shutil
2-
import sys
32
import tarfile
43
import zipfile
54
from pathlib import Path

0 commit comments

Comments
 (0)