-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Document how to avoid ruff removing import hvplot...
#1399
Comments
Running it with You can use It would be nice if Ruff had a whitelist option for some imports. |
Ruff is actually considering it a "safe" fix. I.e. its removed with |
In the next of release of Ruff (the one after 0.6.8), We should find someplace to mention this in hvplot docs. [tool.ruff.lint.pyflakes]
allowed-unused-imports = ["hvplot.pandas"] |
We are migrating from pylint to ruff.
ruff --fix --unsafe-fixes
removesimport hvplot.pandas
as an unused import. See https://docs.astral.sh/ruff/rules/unused-import/.I believe it would be very helpful for lots of users if this issue was discussed and solutions proposed in the docs.
One solution is to
import hvplot.pandas # noqa: F401
. But its rather painful to do across many files. I wish there was a more general solution.The text was updated successfully, but these errors were encountered: