Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Black list and White list for python modules required to be in try/except block #27

Open
UtahDave opened this issue Jan 2, 2015 · 1 comment

Comments

@UtahDave
Copy link
Contributor

UtahDave commented Jan 2, 2015

It would be very useful to have a lint plugin to manage a black list and a white list of python modules that must be in a try/except block.

Black list example:
The pwd modules doesn't exist on Windows and so should be in a try/except block so it doesn't blow up the windows minion

White list example:
@s0undt3ch suggested we make all non-stdlib and non salt hard dep modules be required to be in a try/except block as well.
If we wanted to allow a module that's not stdlib or non salt hard dep be imported outside a try/except block, then we'd add it to the white list.

@s0undt3ch or @thatch45 do you have any thoughts or suggestions for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants