pylint: whitelist the rpm module

Without this, depending on which version of pylint is used, you may see
errors related to the rpm.RPMTAG_* constants. This makes sure that
pylint allows loading the rpm module.

Related: rhbz#1785154
This commit is contained in:
Brian C. Lane 2020-01-30 09:56:33 -08:00
parent ce0f9c4ebf
commit a4a6371581

View File

@ -26,6 +26,14 @@ class LoraxLintConfig(PocketLintConfig):
retval.remove("pocketlint.checkers.markup") retval.remove("pocketlint.checkers.markup")
return retval return retval
@property
def ignoreNames(self):
return { "bots", "rpmbuild", "tito" }
@property
def extraArgs(self):
return ["--extension-pkg-whitelist=rpm"]
if __name__ == "__main__": if __name__ == "__main__":
conf = LoraxLintConfig() conf = LoraxLintConfig()
linter = PocketLinter(conf) linter = PocketLinter(conf)