mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Add flake8-bugbear
This commit is contained in:
1
setup.py
1
setup.py
@ -15,6 +15,7 @@ extras_require = {
|
|||||||
"black==19.3b0",
|
"black==19.3b0",
|
||||||
"isort==4.3.21",
|
"isort==4.3.21",
|
||||||
"flake8>=3.7.7,<4.0.0",
|
"flake8>=3.7.7,<4.0.0",
|
||||||
|
"flake8-bugbear",
|
||||||
],
|
],
|
||||||
"dev": ["tox>=3.13.2,<4.0.0", "docformatter"],
|
"dev": ["tox>=3.13.2,<4.0.0", "docformatter"],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,9 @@ async def try_until_success(coro_func, timeout=TIMEOUT_DURATION):
|
|||||||
break
|
break
|
||||||
if (time.monotonic() - t_start) >= timeout:
|
if (time.monotonic() - t_start) >= timeout:
|
||||||
# timeout
|
# timeout
|
||||||
assert False, f"{coro_func} is still failing after `{timeout}` seconds"
|
raise AssertionError(
|
||||||
|
f"{coro_func} is still failing after `{timeout}` seconds"
|
||||||
|
)
|
||||||
await asyncio.sleep(0.01)
|
await asyncio.sleep(0.01)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user