tests: Fix pocketlint use of removed pylint messages

pylint has removed python2 only messages so running
pocketlint is causing tracebacks in every file.

This removes the problem messages from the disabledOptions property
until pocketlint can be fixed upstream.
This commit is contained in:
Brian C. Lane 2021-04-14 15:51:22 -07:00
parent 18fd73ae82
commit a6742203a6

View File

@ -33,6 +33,18 @@ class LoraxLintConfig(PocketLintConfig):
def extraArgs(self):
return ["--extension-pkg-whitelist=rpm"]
@property
def disabledOptions(self):
retval = super(LoraxLintConfig, self).disabledOptions
# Remove messages that are no longer supported in py3
for msg in ["W0110", "W0141", "W0142", "I0012"]:
try:
retval.remove(msg)
except ValueError:
pass
return retval
if __name__ == "__main__":
conf = LoraxLintConfig()
linter = PocketLinter(conf)