From: Michael Fritch Date: Thu, 28 Jan 2021 03:18:40 +0000 (-0700) Subject: mgr/cephadm: Multiple statements on one line (def) (E704) X-Git-Tag: v17.1.0~3027^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1738e22ec0b08ba225de55bf3772b6242c6cef2f;p=ceph.git mgr/cephadm: Multiple statements on one line (def) (E704) Signed-off-by: Michael Fritch --- diff --git a/src/pybind/mgr/cephadm/tests/test_scheduling.py b/src/pybind/mgr/cephadm/tests/test_scheduling.py index e07819c37e90..1d41fcc9710a 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 2867ba9734df..f9bcbf9ad2e5 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 f69f8232aad8..79513623d1b1 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,