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:
parent
50d0c6e0c1
commit
9dd160ba44
@ -28,6 +28,10 @@ class LoraxLintConfig(PocketLintConfig):
|
|||||||
def ignoreNames(self):
|
def ignoreNames(self):
|
||||||
return { "bots", "rpmbuild" }
|
return { "bots", "rpmbuild" }
|
||||||
|
|
||||||
|
@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)
|
||||||
|
Loading…
Reference in New Issue
Block a user