Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] pylint: add custom check for forbidden imports #462

Closed
wants to merge 1 commit into from
Closed

[WIP] pylint: add custom check for forbidden imports #462

wants to merge 1 commit into from

Conversation

MartinBasti
Copy link
Contributor

Some modules of FreeIPA should not be imported to some other FreeIPA
modules, like ipalib into ipapython

This is WIP, it misses a lot of rules and I had hard time with naming variables, feedback more than welcome.

Some modules of FreeIPA should not be importe to some other FreeIPA
modules, like ipalib into ipapython
@tiran
Copy link
Member

tiran commented Feb 14, 2017

Can you turn module matching into a regular expression? We need bit more advanced checks, e.g. ipalib should not import from ipaplatform except for modules in ipalib.install.

@MartinBasti
Copy link
Contributor Author

@HonzaCholasta has some WIP patches for this in his drawer which may be better than this, so closing this PR in favor of Honza's patches

@MartinBasti MartinBasti added the rejected Pull Request has been rejected label Feb 14, 2017
@MartinBasti MartinBasti deleted the pylint branch February 14, 2017 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected Pull Request has been rejected
Projects
None yet
2 participants