Add pycodestyle ignores

This commit is contained in:
Darko Poljak 2019-11-27 14:59:25 +01:00
parent c01aa576de
commit 3d3b59ab87
4 changed files with 5 additions and 5 deletions

View file

@ -405,7 +405,7 @@ eof
;;
pycodestyle|pep8)
pycodestyle "${basedir}" "${basedir}/scripts/cdist" | less
pycodestyle "${basedir}" "${basedir}/scripts/cdist"
;;
check-pycodestyle)

View file

@ -368,7 +368,7 @@ class Config(object):
def resolve_target_addresses(host, family):
try:
return ipaddr.resolve_target_addresses(host, family)
except:
except: # noqa
e = sys.exc_info()[1]
raise cdist.Error(("Error resolving target addresses for host '{}'"
": {}").format(host, e))

View file

@ -44,7 +44,7 @@ class MissingRequiredEnvironmentVariableError(cdist.Error):
class DefaultList(list):
"""Helper class to allow default values for optional_multiple parameters.
@see https://groups.google.com/forum/#!msg/comp.lang.python/sAUvkJEDpRc/RnRymrzJVDYJ
@see https://groups.google.com/forum/#!msg/comp.lang.python/sAUvkJEDpRc/RnRymrzJVDYJ # noqa
"""
def __copy__(self):
return []

View file

@ -21,7 +21,7 @@ else:
raise DistutilsError("Missing version file {}".format(version_file))
import cdist
import cdist # noqa
def data_finder(data_dir):
@ -66,7 +66,7 @@ setup(
"Development Status :: 6 - Mature",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # noqa
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: POSIX :: BSD",