Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
It would be nice to be able to disable the W0611 warning from
pyflakesonly for specific modules/imports. For example, I often usematplotlibto visualize surface plots, and before calling something likesurf = ax.plot_surface(....)I will initialize myAxesobject with a call likeax = fig.gca(projection='3d').Python only knows about the projection
'3d'by callingfrom mpl_toolkits.mplot3d import Axes3D, yet, because theAxes3Disn't explicitly used in my particular file, I receive apyflakesW0611 warning. I would like the annoying false warning to go away, yet I don't want to sacrifice the W0611 warning altogether withlet g:pymode_lint_ignore = ["W0611"].I suppose in an ideal world,
pyflakes/python-modewould 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.