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.
This commit is contained in:
Brian C. Lane 2020-01-30 09:56:33 -08:00
parent 50d0c6e0c1
commit 9dd160ba44

View File

@ -28,6 +28,10 @@ class LoraxLintConfig(PocketLintConfig):
def ignoreNames(self):
return { "bots", "rpmbuild" }
@property
def extraArgs(self):
return ["--extension-pkg-whitelist=rpm"]
if __name__ == "__main__":
conf = LoraxLintConfig()
linter = PocketLinter(conf)