]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Multiple statements on one line (def) (E704)
authorMichael Fritch <mfritch@suse.com>
Thu, 28 Jan 2021 03:18:40 +0000 (20:18 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 18:20:54 +0000 (11:20 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/tox.ini

index e07819c37e909357ad25a2312ded26f688caf45b..1d41fcc9710ad20e270f8582c0a566914ae448f1 100644 (file)
@@ -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):
index 2867ba9734df10070f3de48db8d8e71ff07c240b..f9bcbf9ad2e5354242a39d518bbb2ab93e0e59df 100644 (file)
@@ -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:
index f69f8232aad82cd76418918c579b7b88e9ff3299..79513623d1b194d97f7d7f0a812388bb351fdf0a 100644 (file)
@@ -12,7 +12,6 @@ requires = cython
 max-line-length = 100
 ignore =
     E501,
-    E704,
     E712,
     E722,
     E731,