From d76324ea38cdcf9f1dac387f60bf0bec008b3ded Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Wed, 27 Jan 2021 20:16:05 -0700 Subject: [PATCH] mgr/cephadm: Expected 1 blank line before a nested definition (E306) Signed-off-by: Michael Fritch --- src/pybind/mgr/cephadm/tests/test_spec.py | 2 ++ src/pybind/mgr/tox.ini | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/tests/test_spec.py b/src/pybind/mgr/cephadm/tests/test_spec.py index 0537778994cfa..5f80ddf797eea 100644 --- a/src/pybind/mgr/cephadm/tests/test_spec.py +++ b/src/pybind/mgr/cephadm/tests/test_spec.py @@ -101,6 +101,7 @@ def test_spec_octopus(spec_json): # Please do not modify those JSON values. spec = ServiceSpec.from_json(spec_json) + # just some verification that we can sill read old octopus specs def convert_to_old_style_json(j): j_c = dict(j.copy()) @@ -121,6 +122,7 @@ def test_spec_octopus(spec_json): j_c.pop('objectstore', None) j_c.pop('filter_logic', None) return j_c + assert spec_json == convert_to_old_style_json(spec.to_json()) diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index e363eee559088..0d3d46243cd09 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -11,7 +11,6 @@ requires = cython [flake8] max-line-length = 100 ignore = - E306, E501, E703, E704, -- 2.39.5