Skip to content

Commit 90e2302

Browse files
committed
pep8
1 parent d66f7a5 commit 90e2302

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

setuptools_rust/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .extension import RustExtension
1010
from .utils import Binding
1111

12-
__all__ = ('RustExtension',
12+
__all__ = ('RustExtension', 'Binding',
1313
'check_rust', 'clean_rust', 'build_ext', 'build_rust', 'test_rust')
1414

1515

setuptools_rust/check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def run(self):
5858
features.update(cpython_feature(binding=ext.binding))
5959

6060
# check cargo command
61-
feature_args = ["--features", " ".join(features)] if features else []
61+
feature_args = [
62+
"--features", " ".join(features)] if features else []
6263
args = (["cargo", "check", "--lib", "--manifest-path", ext.path]
6364
+ feature_args
6465
+ list(ext.args or []))

setuptools_rust/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def run(self):
6060
features.update(cpython_feature(ext=False, binding=ext.binding))
6161

6262
# test cargo command
63-
feature_args = ["--features", " ".join(features)] if features else []
63+
feature_args = [
64+
"--features", " ".join(features)] if features else []
6465
args = (["cargo", "test", "--lib", "--manifest-path", ext.path]
6566
+ feature_args
6667
+ list(ext.args or []))

setuptools_rust/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def cpython_feature(ext=True, binding=Binding.PyO3):
3535
else:
3636
return ("pyo3/python3",)
3737
else:
38-
raise DistutilsPlatformError("Unsupported python version: %s" % sys.version)
38+
raise DistutilsPlatformError(
39+
"Unsupported python version: %s" % sys.version)
3940
elif binding is Binding.RustCPython:
4041
if (2, 7) < version < (2, 8):
4142
if ext:
@@ -53,6 +54,7 @@ def cpython_feature(ext=True, binding=Binding.PyO3):
5354
else:
5455
raise DistutilsPlatformError('Unknown Binding: "{}" '.format(binding))
5556

57+
5658
def get_rust_version():
5759
try:
5860
output = subprocess.check_output(["rustc", "-V"])

0 commit comments

Comments
 (0)