From: Michael Fritch Date: Thu, 18 Feb 2021 22:02:31 +0000 (-0700) Subject: cephadm: too many leading '#' for block comment (E266) X-Git-Tag: v17.1.0~2749^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3dcb56e3e31d11041a48c2749bb248240bb14134;p=ceph.git cephadm: too many leading '#' for block comment (E266) Signed-off-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 11ad81c389659..e765400df1343 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -164,9 +164,6 @@ class CephadmContext: super().__setattr__(name, value) -################################## - - # Log and console output config logging_config = { 'version': 1, @@ -1875,7 +1872,7 @@ def move_files(ctx, src, dst, uid=None, gid=None): os.chown(dst_file, uid, gid) -## copied from distutils ## +# copied from distutils def find_executable(executable, path=None): """Tries to find 'executable' in the directories listed in 'path'. A string listing directories separated by 'os.pathsep'; defaults to @@ -4425,9 +4422,9 @@ def command_logs(ctx): def list_networks(ctx): # type: (CephadmContext) -> Dict[str,List[str]] - ## sadly, 18.04's iproute2 4.15.0-2ubun doesn't support the -j flag, - ## so we'll need to use a regex to parse 'ip' command output. - ## + # sadly, 18.04's iproute2 4.15.0-2ubun doesn't support the -j flag, + # so we'll need to use a regex to parse 'ip' command output. + # # out, _, _ = call_throws(['ip', '-j', 'route', 'ls']) # j = json.loads(out) # for x in j: diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 18ce529d341ad..6ec9f7b8c93b0 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -5,7 +5,6 @@ skipsdist=true [flake8] max-line-length = 100 ignore = - E266, E301, E302, E303,