1515
1616@invoke .task
1717def clean (c ):
18- """ Remove any built objects """
18+ """Remove any built objects"""
1919 for file_pattern in (
2020 "*.o" ,
2121 "*.so" ,
@@ -41,7 +41,7 @@ def print_banner(msg):
4141
4242@invoke .task ()
4343def build_cmult (c , path = None ):
44- """ Build the shared library for the sample C code """
44+ """Build the shared library for the sample C code"""
4545 # Moving this type hint into signature causes an error (???)
4646 c : invoke .Context
4747 if on_win :
@@ -65,7 +65,7 @@ def build_cmult(c, path=None):
6565
6666@invoke .task ()
6767def test_ctypes (c ):
68- """ Run the script to test ctypes """
68+ """Run the script to test ctypes"""
6969 print_banner ("Testing ctypes Module" )
7070 # pty and python3 didn't work for me (win).
7171 if on_win :
@@ -76,7 +76,7 @@ def test_ctypes(c):
7676
7777@invoke .task ()
7878def build_cffi (c ):
79- """ Build the CFFI Python bindings """
79+ """Build the CFFI Python bindings"""
8080 print_banner ("Building CFFI Module" )
8181 ffi = cffi .FFI ()
8282
@@ -109,14 +109,14 @@ def build_cffi(c):
109109
110110@invoke .task ()
111111def test_cffi (c ):
112- """ Run the script to test CFFI """
112+ """Run the script to test CFFI"""
113113 print_banner ("Testing CFFI Module" )
114114 invoke .run ("python cffi_test.py" , pty = not on_win )
115115
116116
117117@invoke .task ()
118118def build_cppmult (c ):
119- """ Build the shared library for the sample C++ code """
119+ """Build the shared library for the sample C++ code"""
120120 print_banner ("Building C++ Library" )
121121 invoke .run (
122122 "g++ -O3 -Wall -Werror -shared -std=c++11 -fPIC cppmult.cpp "
@@ -138,22 +138,22 @@ def compile_python_module(cpp_name, extension_name):
138138
139139@invoke .task (build_cppmult )
140140def build_pybind11 (c ):
141- """ Build the pybind11 wrapper library """
141+ """Build the pybind11 wrapper library"""
142142 print_banner ("Building PyBind11 Module" )
143143 compile_python_module ("pybind11_wrapper.cpp" , "pybind11_example" )
144144 print ("* Complete" )
145145
146146
147147@invoke .task ()
148148def test_pybind11 (c ):
149- """ Run the script to test PyBind11 """
149+ """Run the script to test PyBind11"""
150150 print_banner ("Testing PyBind11 Module" )
151151 invoke .run ("python3 pybind11_test.py" , pty = True )
152152
153153
154154@invoke .task (build_cppmult )
155155def build_cython (c ):
156- """ Build the cython extension module """
156+ """Build the cython extension module"""
157157 print_banner ("Building Cython Module" )
158158 # Run cython on the pyx file to create a .cpp file
159159 invoke .run ("cython --cplus -3 cython_example.pyx -o cython_wrapper.cpp" )
@@ -165,7 +165,7 @@ def build_cython(c):
165165
166166@invoke .task ()
167167def test_cython (c ):
168- """ Run the script to test Cython """
168+ """Run the script to test Cython"""
169169 print_banner ("Testing Cython Module" )
170170 invoke .run ("python3 cython_test.py" , pty = True )
171171
@@ -182,5 +182,5 @@ def test_cython(c):
182182 test_cython ,
183183)
184184def all (c ):
185- """ Build and run all tests """
185+ """Build and run all tests"""
186186 pass
0 commit comments