Skip to content

Commit 4ec2b8f

Browse files
committed
Reformat with black
1 parent 57ccbc7 commit 4ec2b8f

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

pytest_asyncio/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def wrap_in_sync(func, _loop):
176176
# if the function is already wrapped, we rewrap using the original one
177177
# not using __wrapped__ because the original function may already be
178178
# a wrapped one
179-
if hasattr(func, '_raw_test_func'):
179+
if hasattr(func, "_raw_test_func"):
180180
func = func._raw_test_func
181181

182182
@functools.wraps(func)

setup.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66

77
def find_version():
88
version_file = (
9-
Path(__file__)
10-
.parent.joinpath("pytest_asyncio", "__init__.py")
11-
.read_text()
12-
)
13-
version_match = re.search(
14-
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
9+
Path(__file__).parent.joinpath("pytest_asyncio", "__init__.py").read_text()
1510
)
11+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
1612
if version_match:
1713
return version_match.group(1)
1814

@@ -44,11 +40,7 @@ def find_version():
4440
python_requires=">= 3.7",
4541
install_requires=["pytest >= 5.4.0"],
4642
extras_require={
47-
"testing": [
48-
"coverage",
49-
"hypothesis >= 5.7.1",
50-
"flaky >= 3.5.0"
51-
],
43+
"testing": ["coverage", "hypothesis >= 5.7.1", "flaky >= 3.5.0"],
5244
},
5345
entry_points={"pytest11": ["asyncio = pytest_asyncio.plugin"]},
5446
)

0 commit comments

Comments
 (0)