Skip to content

Commit 4675a64

Browse files
committed
style: run pre-commit and fix
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 7347285 commit 4675a64

File tree

16 files changed

+152
-94
lines changed

16 files changed

+152
-94
lines changed

projects/hello-cmake-package/setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from skbuild import setup
22

3-
43
setup(
54
name="hello-cmake-package",
65
version="0.1.0",
7-
packages=['hello'],
8-
package_dir={'': 'src'},
9-
cmake_install_dir='src/hello')
6+
packages=["hello"],
7+
package_dir={"": "src"},
8+
cmake_install_dir="src/hello",
9+
)
1010

1111
# When building extension modules `cmake_install_dir` should always be set to the
1212
# location of the package you are building extension modules for.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
from ._hello import hello # noqa: F401
2-
from ._hello import elevation # noqa: F401
1+
from ._hello import (
2+
elevation, # noqa: F401
3+
hello, # noqa: F401
4+
)

projects/hello-cpp/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name="hello-cpp",
55
version="1.2.3",
66
description="a minimal example package (cpp version)",
7-
author='The scikit-build team',
7+
author="The scikit-build team",
88
license="MIT",
9-
packages=['hello'],
9+
packages=["hello"],
1010
python_requires=">=3.7",
1111
)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from ._hello import hello, elevation
2-
1+
from ._hello import elevation, hello
32

43
__all__ = ("hello", "elevation")

projects/hello-cython/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from skbuild import setup
22

3-
43
setup(
54
name="hello-cython",
65
version="1.2.3",
76
description="a minimal example package (cython version)",
8-
author='The scikit-build team',
7+
author="The scikit-build team",
98
license="MIT",
10-
packages=['hello'],
9+
packages=["hello"],
1110
python_requires=">=3.7",
1211
)

projects/hello-pure/hello/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def hello(txt):
42
print("Hello, %s!" % txt)
53

projects/hello-pure/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from skbuild import setup
22

3-
43
setup(
54
name="hello-pure",
65
version="1.2.3",
76
description="a minimal example package (pure python version)",
8-
author='The scikit-build team',
7+
author="The scikit-build team",
98
license="MIT",
10-
packages=['hello'],
9+
packages=["hello"],
1110
python_requires=">=3.7",
1211
)

projects/hello-pybind11/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
name="hello-pybind11",
55
version="1.2.3",
66
description="a minimal example package (with pybind11)",
7-
author='Pablo Hernandez-Cerdan',
7+
author="Pablo Hernandez-Cerdan",
88
license="MIT",
9-
packages=['hello'],
10-
package_dir={'': 'src'},
11-
cmake_install_dir='src/hello',
12-
python_requires='>=3.7',
9+
packages=["hello"],
10+
package_dir={"": "src"},
11+
cmake_install_dir="src/hello",
12+
python_requires=">=3.7",
1313
)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from ._hello import hello, return_two
22

3-
43
__all__ = ("hello", "return_two")

projects/hello-pybind11/tests/test_hello_pybind11.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# This kind of import is automatically done when importing hello from outside
2-
import hello
32
import unittest
43

4+
import hello
5+
56

67
class TestHello(unittest.TestCase):
78
def test_hello(self):

0 commit comments

Comments
 (0)