Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLudwig committed Apr 27, 2022
1 parent 9c5bf73 commit 7e0ef59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion amqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def reconnect(self, cleansession=None):
"Maximum number of connection attempts reached. Reconnection aborted"
)
raise ConnectException("Too many connection attempts failed") from e
exp = 2 ** nb_attempt
exp = 2**nb_attempt
delay = exp if exp < reconnect_max_interval else reconnect_max_interval
self.logger.debug("Waiting %d second before next attempt" % delay)
await asyncio.sleep(delay, loop=self._loop)
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ def setup(app):
# app.add_javascript("custom.js")
app.add_stylesheet("theme_overrides.css")


else:
# Override default css to get a larger width for ReadTheDoc build
html_context = {
Expand Down
6 changes: 4 additions & 2 deletions tests/plugins/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ def _verify_module(module, plugin_module_name):
continue

obj = clazz(_TestContext())
with pytest.raises(AttributeError, match=f"'{name}' object has no attribute '{_INVALID_METHOD}'"):
with pytest.raises(
AttributeError,
match=f"'{name}' object has no attribute '{_INVALID_METHOD}'",
):
getattr(obj, _INVALID_METHOD)
assert hasattr(obj, _INVALID_METHOD) is False


for name, obj in inspect.getmembers(module, inspect.ismodule):
_verify_module(obj, plugin_module_name)

Expand Down

0 comments on commit 7e0ef59

Please sign in to comment.