-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Autofix error] pyvista/tests/plotting/test_charts.py
#7229
Labels
bug
Something isn't working
Comments
Thanks for the details! Can you share the error? :) |
Thanks! The issue can be shrunk to for axis in (chart_2d.x_axis, chart_2d.y_axis):
assert not (
axis.visible
or axis.label_visible
or axis.ticks_visible
or axis.tick_labels_visible
or axis.grid
) which is a for axis in (chart_2d.x_axis, chart_2d.y_axis):
assert not axis.visible
or axis.label_visible
or axis.ticks_visible
or axis.tick_labels_visible
assert not axis.grid which is not valid syntax. This is resolved on our for axis in (chart_2d.x_axis, chart_2d.y_axis):
assert not (
axis.visible
)
assert not (
axis.label_visible
)
assert not (
axis.ticks_visible
)
assert not (
axis.tick_labels_visible
)
assert not (
axis.grid
) It'll be available on our next release. Otherwise you can split the assertion or ignore the rule for now. |
Thanks @qarmin for finding this bug by fuzzing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered an autofix error when I try to introduce ruff into pyvista.
Problematic file:
tests/plotting/test_charts.py
The current Ruff settings
pyproject.toml
:.pre-commit-config.yaml
:pre-commit run ruff --files tests/plotting/test_charts.py
The text was updated successfully, but these errors were encountered: