forked from ungleich-public/cdist
Add pycodestyle ignores
This commit is contained in:
parent
c01aa576de
commit
3d3b59ab87
4 changed files with 5 additions and 5 deletions
|
@ -405,7 +405,7 @@ eof
|
||||||
;;
|
;;
|
||||||
|
|
||||||
pycodestyle|pep8)
|
pycodestyle|pep8)
|
||||||
pycodestyle "${basedir}" "${basedir}/scripts/cdist" | less
|
pycodestyle "${basedir}" "${basedir}/scripts/cdist"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
check-pycodestyle)
|
check-pycodestyle)
|
||||||
|
|
|
@ -368,7 +368,7 @@ class Config(object):
|
||||||
def resolve_target_addresses(host, family):
|
def resolve_target_addresses(host, family):
|
||||||
try:
|
try:
|
||||||
return ipaddr.resolve_target_addresses(host, family)
|
return ipaddr.resolve_target_addresses(host, family)
|
||||||
except:
|
except: # noqa
|
||||||
e = sys.exc_info()[1]
|
e = sys.exc_info()[1]
|
||||||
raise cdist.Error(("Error resolving target addresses for host '{}'"
|
raise cdist.Error(("Error resolving target addresses for host '{}'"
|
||||||
": {}").format(host, e))
|
": {}").format(host, e))
|
||||||
|
|
|
@ -44,7 +44,7 @@ class MissingRequiredEnvironmentVariableError(cdist.Error):
|
||||||
class DefaultList(list):
|
class DefaultList(list):
|
||||||
"""Helper class to allow default values for optional_multiple parameters.
|
"""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):
|
def __copy__(self):
|
||||||
return []
|
return []
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -21,7 +21,7 @@ else:
|
||||||
raise DistutilsError("Missing version file {}".format(version_file))
|
raise DistutilsError("Missing version file {}".format(version_file))
|
||||||
|
|
||||||
|
|
||||||
import cdist
|
import cdist # noqa
|
||||||
|
|
||||||
|
|
||||||
def data_finder(data_dir):
|
def data_finder(data_dir):
|
||||||
|
@ -66,7 +66,7 @@ setup(
|
||||||
"Development Status :: 6 - Mature",
|
"Development Status :: 6 - Mature",
|
||||||
"Environment :: Console",
|
"Environment :: Console",
|
||||||
"Intended Audience :: System Administrators",
|
"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 :: MacOS :: MacOS X",
|
||||||
"Operating System :: POSIX",
|
"Operating System :: POSIX",
|
||||||
"Operating System :: POSIX :: BSD",
|
"Operating System :: POSIX :: BSD",
|
||||||
|
|
Loading…
Reference in a new issue