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: v16.2.0~178^2~40 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f564e0a67b7a9f6289addfb83ff6b579e2d0afc;p=ceph.git mgr/cephadm: Multiple statements on one line (def) (E704) Signed-off-by: Michael Fritch (cherry picked from commit 1738e22ec0b08ba225de55bf3772b6242c6cef2f) --- 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 7bebb3da61e5..b3543cc429a7 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 aae1e95f2e51..d7f799c8202e 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,