From 3d3b59ab87e72bf407e4c7f8880f19fc0e009f25 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 27 Nov 2019 14:59:25 +0100 Subject: [PATCH] Add pycodestyle ignores --- bin/build-helper | 2 +- cdist/config.py | 2 +- cdist/emulator.py | 2 +- setup.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/build-helper b/bin/build-helper index 9a776491..7cfc4d55 100755 --- a/bin/build-helper +++ b/bin/build-helper @@ -405,7 +405,7 @@ eof ;; pycodestyle|pep8) - pycodestyle "${basedir}" "${basedir}/scripts/cdist" | less + pycodestyle "${basedir}" "${basedir}/scripts/cdist" ;; check-pycodestyle) diff --git a/cdist/config.py b/cdist/config.py index 26d07fc4..6c30db2e 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -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)) diff --git a/cdist/emulator.py b/cdist/emulator.py index 3cf82f84..417f2cdd 100644 --- a/cdist/emulator.py +++ b/cdist/emulator.py @@ -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 [] diff --git a/setup.py b/setup.py index 2bb1e16d..7b000041 100644 --- a/setup.py +++ b/setup.py @@ -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",