We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FURB188 can apply to any slice regardless of the slice’s step. FURB188 should only apply if the step is omitted, None, 1, or True.
None
1
True
$ ruff --version ruff 0.6.5 $ cat furb188.py text = "!x!y!z" if text.startswith("!"): text = text[1::2] print(text) $ python furb188.py xyz $ ruff check --isolated --preview --target-version py39 --select FURB188 furb188.py --fix Found 1 error (1 fixed, 0 remaining). $ python furb188.py x!y!z
The text was updated successfully, but these errors were encountered:
Thanks! I'm visiting family the next few days but I should be able to fix this early next week.
Sorry, something went wrong.
slice-to-remove-prefix-or-suffix (FURB188)
Successfully merging a pull request may close this issue.
FURB188 can apply to any slice regardless of the slice’s step. FURB188 should only apply if the step is omitted,
None
,1
, orTrue
.The text was updated successfully, but these errors were encountered: