Repository navigation
Fix f-string - #78
Fix f-string#78
Conversation
|
We could enable ruff's missing-f-string-syntax check (RUF027). It catches strings with {...} placeholders that are missing the "f" prefix, like this bug. t's still a preview rule, but we can turn on only this one preview rule by changing [tool.ruff.lint] in pyproject.toml to: and pinning ruff in tox.ini (e.g. ruff==0.17.1 instead of ruff) so a ruff update can't unexpectedly break CI. What do you think? |
I'd be in favor of including the rule, but don't think we need to pin the ruff version. @LourensVeen Do you have any thoughts on this? |
|
Yes, let's include the rule, we've had this in other places too so it's good if it gets checked. As for pinning the version, we recently had ruff 0.17 change some of the rules and that wasn't too painful for me at least, so I think we can just leave it unpinned and get the benefits of the latest and greatest. |
maarten-ic
left a comment
There was a problem hiding this comment.
Thanks for looking into this!
No description provided.