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

Enable disabling warning W0611 from pyflakes only for specific modules #1099

Open
jakecolston opened this issue Aug 20, 2020 · 0 comments
Open

Enable disabling warning W0611 from pyflakes only for specific modules #1099

jakecolston opened this issue Aug 20, 2020 · 0 comments

Comments

@jakecolston
Copy link

@jakecolston jakecolston commented Aug 20, 2020

It would be nice to be able to disable the W0611 warning from pyflakes only for specific modules/imports. For example, I often use matplotlib to visualize surface plots, and before calling something like surf = ax.plot_surface(....) I will initialize my Axes object with a call like ax = fig.gca(projection='3d').

Python only knows about the projection '3d' by calling from mpl_toolkits.mplot3d import Axes3D, yet, because the Axes3D isn't explicitly used in my particular file, I receive a pyflakes W0611 warning. I would like the annoying false warning to go away, yet I don't want to sacrifice the W0611 warning altogether with let g:pymode_lint_ignore = ["W0611"].

I suppose in an ideal world, pyflakes/python-mode would somehow detect that `Axes3D was in fact being used via the keyword argument input, but I thought disabling specific modules/imports would likely be more straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.