trivial: add noqa markers to new pylint warnings

This commit is contained in:
Frédéric Péters 2021-09-16 23:52:32 +02:00
parent 45fc01e5f5
commit 2ca2ee402c
3 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@ def teardown_module(module):
def test_loading():
ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl'])
ctl.load_all_commands(ignore_errors=False)
# noqa pylint: disable=consider-iterating-dictionary
assert 'shell' in ctl.get_commands().keys()
# call all __init__() methods
for cmd in ctl.get_commands().values():

View File

@ -27,6 +27,7 @@ def setup_module(module):
def teardown_module(module):
# noqa pylint: disable=global-variable-not-assigned
global pub
shutil.rmtree(pub.APP_DIR)

View File

@ -222,6 +222,7 @@ class StaticsDirectory(Directory):
pass
def _q_traverse(self, path):
# noqa pylint: disable=consider-iterating-dictionary
if path[0] in self.static_directories.keys():
prefix, rest = path[0], path[1:]
else: