mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-28 04:28:58 +02:00
update black to 21.6b0 (#10197)
Reformat all files with the new version. Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
This commit is contained in:
parent
6f1a28de19
commit
8070b893db
17 changed files with 28 additions and 27 deletions
1
changelog.d/10197.misc
Normal file
1
changelog.d/10197.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Upgrade `black` linting tool to 21.6b0.
|
2
setup.py
2
setup.py
|
@ -97,7 +97,7 @@ CONDITIONAL_REQUIREMENTS["all"] = list(ALL_OPTIONAL_REQUIREMENTS)
|
||||||
# We pin black so that our tests don't start failing on new releases.
|
# We pin black so that our tests don't start failing on new releases.
|
||||||
CONDITIONAL_REQUIREMENTS["lint"] = [
|
CONDITIONAL_REQUIREMENTS["lint"] = [
|
||||||
"isort==5.7.0",
|
"isort==5.7.0",
|
||||||
"black==20.8b1",
|
"black==21.6b0",
|
||||||
"flake8-comprehensions",
|
"flake8-comprehensions",
|
||||||
"flake8-bugbear==21.3.2",
|
"flake8-bugbear==21.3.2",
|
||||||
"flake8",
|
"flake8",
|
||||||
|
|
|
@ -571,7 +571,7 @@ class ReplicationCommandHandler:
|
||||||
def on_REMOTE_SERVER_UP(
|
def on_REMOTE_SERVER_UP(
|
||||||
self, conn: IReplicationConnection, cmd: RemoteServerUpCommand
|
self, conn: IReplicationConnection, cmd: RemoteServerUpCommand
|
||||||
):
|
):
|
||||||
""""Called when get a new REMOTE_SERVER_UP command."""
|
"""Called when get a new REMOTE_SERVER_UP command."""
|
||||||
self._replication_data_handler.on_remote_server_up(cmd.data)
|
self._replication_data_handler.on_remote_server_up(cmd.data)
|
||||||
|
|
||||||
self._notifier.notify_remote_server_up(cmd.data)
|
self._notifier.notify_remote_server_up(cmd.data)
|
||||||
|
|
Loading…
Reference in a new issue