Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Borda This shouldn't pass CI linter test as it's using double quotes instead of single quotes... but it does pass CI.
I verified locally that a revert of your e32d95c would report this as lint error, as expected. Could you please check this? Otherwise we may have to revert the PR #1204
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let me check it on Monday, ref: astral-sh/ruff#7834 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, found that format was not ever called correctly; see #1457
but still not resolved fully the single-quote issues yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last resort would be to add
flake8
back, maybe afterruff
, sinceflake8
only detects but doesn't do the fix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reported in astral-sh/ruff#11209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently they intentionally don't want to enforce quote behavior here. I think that's fine. We already disabled black's quote style fix in
pyproject.toml
, so we won't see people's IDE plugins changing this line from single to double and from double to single endlessly (unless they manually do so).