From 1738e22ec0b08ba225de55bf3772b6242c6cef2f Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Wed, 27 Jan 2021 20:18:40 -0700 Subject: [PATCH] mgr/cephadm: Multiple statements on one line (def) (E704) Signed-off-by: Michael Fritch --- src/pybind/mgr/cephadm/tests/test_scheduling.py | 3 ++- src/pybind/mgr/orchestrator/_interface.py | 3 ++- src/pybind/mgr/tox.ini | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/cephadm/tests/test_scheduling.py b/src/pybind/mgr/cephadm/tests/test_scheduling.py index e07819c37e9..1d41fcc9710 100644 --- a/src/pybind/mgr/cephadm/tests/test_scheduling.py +++ b/src/pybind/mgr/cephadm/tests/test_scheduling.py @@ -69,7 +69,8 @@ def _or(expected, *inners): assert False, f"_or failed: {expected}" -def _always_true(_): pass +def _always_true(_): + pass def k(s): diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 2867ba9734d..f9bcbf9ad2e 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -115,7 +115,8 @@ def handle_exception(prefix: str, perm: str, func: FuncT) -> FuncT: class InnerCliCommandCallable(Protocol): - def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ... + def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: + ... def _cli_command(perm: str) -> InnerCliCommandCallable: diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index f69f8232aad..79513623d1b 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -12,7 +12,6 @@ requires = cython max-line-length = 100 ignore = E501, - E704, E712, E722, E731, -- 2.39.5