]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: Continuation line missing indentation or outdented (E122)
authorMichael Fritch <mfritch@suse.com>
Thu, 28 Jan 2021 03:08:32 +0000 (20:08 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 18:18:22 +0000 (11:18 -0700)
also resolves:
continuation line unaligned for hanging indent (E131)

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/tox.ini

index 3c36276867d9c0c289683d1ccbf9ff2a6c898b95..922cd78f2467a5888459da50f43c925a3f31e32a 100644 (file)
@@ -834,28 +834,27 @@ class OddMonsTest(NamedTuple):
                                  ],
                                  3
                              ),
-                            OddMonsTest(
-                                'mon',
-                                PlacementSpec(count=5),
-                                'host1 host2 host3 host4'.split(),
-                                [
-                                    DaemonDescription('mon', 'a', 'host1'),
-                                    DaemonDescription('mon', 'b', 'host2'),
-                                ],
-                                3
-                            ),
-                            OddMonsTest(
-                                'mon',
-                                PlacementSpec(hosts='host1 host2 host3 host4'.split()),
-                                'host1 host2 host3 host4 host5'.split(),
-                                [
-                                    DaemonDescription('mon', 'a', 'host1'),
-                                    DaemonDescription('mon', 'b', 'host2'),
-                                    DaemonDescription('mon', 'c', 'host3'),
-                                ],
-                                3
-                            ),
-
+                             OddMonsTest(
+                                 'mon',
+                                 PlacementSpec(count=5),
+                                 'host1 host2 host3 host4'.split(),
+                                 [
+                                     DaemonDescription('mon', 'a', 'host1'),
+                                     DaemonDescription('mon', 'b', 'host2'),
+                                 ],
+                                 3
+                             ),
+                             OddMonsTest(
+                                 'mon',
+                                 PlacementSpec(hosts='host1 host2 host3 host4'.split()),
+                                 'host1 host2 host3 host4 host5'.split(),
+                                 [
+                                     DaemonDescription('mon', 'a', 'host1'),
+                                     DaemonDescription('mon', 'b', 'host2'),
+                                     DaemonDescription('mon', 'c', 'host3'),
+                                 ],
+                                 3
+                             ),
                          ])
 def test_odd_mons(service_type, placement, hosts, daemons, expected_count):
 
index 579306a9df7d4e1560d179429ca8fea7bc422417..6676280215677c440c1c34cdca55434732623f0b 100644 (file)
@@ -11,11 +11,9 @@ requires = cython
 [flake8]
 max-line-length = 100
 ignore =
-    E122,
     E124,
     E126,
     E128,
-    E131,
     E225,
     E226,
     E231,