You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then in review there was a decision to skip TRY301 For all test files.
Then running ruff ends with:
error: Autofix introduced a syntax error. Reverting all changes.
This indicates a bug in `ruff`. If you could open an issue at:
https://github.com/charliermarsh/ruff/issues/new?title=%5BAutofix%20error%5D
...quoting the contents of `napari/_qt/_tests/test_qt_notifications.py`, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!
It comes from the incorrect noqa # noqa TRY301 instead of # noqa: TRY301. But it looks like auto-fix should comment out the rest of the text if something is left after removing noqa
(in napari I introduce ruff in parts to make the review possible)
The text was updated successfully, but these errors were encountered:
When adding
TRY
rules in ruff configuration for napari project, then I add # noqa TRY301Then in review there was a decision to skip
TRY301
For all test files.Then running ruff ends with:
Updating code to
Makes auto-fix work.
It comes from the incorrect noqa
# noqa TRY301
instead of# noqa: TRY301
. But it looks like auto-fix should comment out the rest of the text if something is left after removing noqa(in napari I introduce ruff in parts to make the review possible)
The text was updated successfully, but these errors were encountered: