Skip to content

Commit 7e3d794

Browse files
committed
Appease black linter
1 parent d61800d commit 7e3d794

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

setup.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,26 @@
3838
class sdist(_sdist):
3939
"""Custom sdist building using cython
4040
"""
41+
4142
def run(self):
4243
# Make sure the compiled Cython files in the distribution
4344
# are up-to-date
4445
from Cython.Build import cythonize
46+
4547
cythonize(["src/pluggy/callers/cythonized.pyx"])
4648
_sdist.run(self)
4749

4850

4951
try:
5052
from Cython.Build import cythonize
53+
5154
print("Building Cython extension(s)")
5255
exts = cythonize(["src/pluggy/callers/cythonized.pyx"])
53-
cmdclass['sdist'] = sdist
56+
cmdclass["sdist"] = sdist
5457
except ImportError:
5558
# When Cython is not installed build from C sources
5659
print("Building C extension(s)")
57-
exts = [Extension("pluggy.callers.cythonized",
58-
["src/pluggy/callers/cythonized.c"])]
60+
exts = [Extension("pluggy.callers.cythonized", ["src/pluggy/callers/cythonized.c"])]
5961

6062

6163
def main():
@@ -74,7 +76,7 @@ def main():
7476
install_requires=['importlib-metadata>=0.12;python_version<"3.8"'],
7577
extras_require=EXTRAS_REQUIRE,
7678
classifiers=classifiers,
77-
packages=['pluggy', 'pluggy.callers'],
79+
packages=["pluggy", "pluggy.callers"],
7880
package_dir={"": "src"},
7981
ext_modules=exts,
8082
cmdclass=cmdclass,

src/pluggy/callers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .._result import HookCallError, _Result, _raise_wrapfail
77
from .cythonized import _c_multicall
88

9-
__all__ = ['_multicall', '_c_multicall']
9+
__all__ = ["_multicall", "_c_multicall"]
1010

1111

1212
def _multicall(hook_impls, caller_kwargs, firstresult=False):

testing/benchmark.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ def wrappers(request):
3838
return [wrapper for i in range(request.param)]
3939

4040

41-
@pytest.fixture(
42-
params=[_multicall, _c_multicall],
43-
ids=lambda item: item.__name__
44-
)
41+
@pytest.fixture(params=[_multicall, _c_multicall], ids=lambda item: item.__name__)
4542
def callertype(request):
4643
return request.param
4744

0 commit comments

Comments
 (0)