Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
This repository was 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

@UtahDave

Description

@UtahDave

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions