mirror of https://github.com/zulip/zulip.git
runtornado: Fix COM818 Trailing comma on bare tuple prohibited.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
875d564f2d
commit
ff409342e1
|
@ -96,6 +96,7 @@ select = [
|
||||||
"ANN", # annotations
|
"ANN", # annotations
|
||||||
"B", # bugbear
|
"B", # bugbear
|
||||||
"C4", # comprehensions
|
"C4", # comprehensions
|
||||||
|
"COM", # trailing comma
|
||||||
"DJ", # Django
|
"DJ", # Django
|
||||||
"DTZ", # naive datetime
|
"DTZ", # naive datetime
|
||||||
"E", # style errors
|
"E", # style errors
|
||||||
|
@ -129,6 +130,7 @@ ignore = [
|
||||||
"B023", # Function definition does not bind loop variable
|
"B023", # Function definition does not bind loop variable
|
||||||
"B904", # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
|
"B904", # Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
|
||||||
"C408", # Unnecessary `dict` call (rewrite as a literal)
|
"C408", # Unnecessary `dict` call (rewrite as a literal)
|
||||||
|
"COM812", # Trailing comma missing
|
||||||
"DJ001", # Avoid using `null=True` on string-based fields
|
"DJ001", # Avoid using `null=True` on string-based fields
|
||||||
"DJ008", # Model does not define `__str__` method
|
"DJ008", # Model does not define `__str__` method
|
||||||
"E402", # Module level import not at top of file
|
"E402", # Module level import not at top of file
|
||||||
|
|
|
@ -79,12 +79,12 @@ class Command(BaseCommand):
|
||||||
stop_fut.set_result(None)
|
stop_fut.set_result(None)
|
||||||
|
|
||||||
def add_signal_handlers() -> None:
|
def add_signal_handlers() -> None:
|
||||||
loop.add_signal_handler(signal.SIGINT, stop),
|
loop.add_signal_handler(signal.SIGINT, stop)
|
||||||
loop.add_signal_handler(signal.SIGTERM, stop),
|
loop.add_signal_handler(signal.SIGTERM, stop)
|
||||||
|
|
||||||
def remove_signal_handlers() -> None:
|
def remove_signal_handlers() -> None:
|
||||||
loop.remove_signal_handler(signal.SIGINT),
|
loop.remove_signal_handler(signal.SIGINT)
|
||||||
loop.remove_signal_handler(signal.SIGTERM),
|
loop.remove_signal_handler(signal.SIGTERM)
|
||||||
|
|
||||||
async with AsyncExitStack() as stack:
|
async with AsyncExitStack() as stack:
|
||||||
stack.push_async_callback(
|
stack.push_async_callback(
|
||||||
|
|
Loading…
Reference in New Issue