pylint: allow a few more 3rd party modules

Strangely the following errors keep blocking the pre-commit lint hook on virt
module while those never appear in the CI.

[W8410(3rd-party-module-not-gated), ] 3rd-party module import is not gated in a try/except: 'base64'
[W8410(3rd-party-module-not-gated), ] 3rd-party module import is not gated in a try/except: 'copy'
[W8410(3rd-party-module-not-gated), ] 3rd-party module import is not gated in a try/except: 'os'
[W8410(3rd-party-module-not-gated), ] 3rd-party module import is not gated in a try/except: 're'
[W8410(3rd-party-module-not-gated), ] 3rd-party module import is not gated in a try/except: 'shutil'

Add these modules to the allowed 3rd party modules to clear the errors.
This commit is contained in:
Cédric Bosdonnat 2020-07-30 09:36:43 +02:00 committed by Daniel Wozniak
parent ffd48362a1
commit fdc77e62ca

View file

@ -684,8 +684,14 @@ allowed-3rd-party-modules=msgpack,
setuptools,
pytestsalt,
saltfactories,
distro
distro,
os,
re,
shutil,
copy,
base64,
tempfile,
fnmatch
[EXCEPTIONS]