mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Rename Autofix
to Fix
(#7657)
**Summary** Mostly mechanical symbol rename and search-and-replace, with small changes to the markdown docs to read better
This commit is contained in:
parent
8028de8956
commit
1e173f7909
231 changed files with 943 additions and 960 deletions
|
@ -627,7 +627,7 @@ result = function(
|
|||
**{'ham': spam}
|
||||
)
|
||||
|
||||
# Make sure the COM812 and UP034 rules don't autofix simultaneously and cause a syntax error.
|
||||
# Make sure the COM812 and UP034 rules don't fix simultaneously and cause a syntax error.
|
||||
the_first_one = next(
|
||||
(i for i in range(10) if i // 2 == 0) # COM812 fix should include the final bracket
|
||||
)
|
||||
|
|
|
@ -33,10 +33,10 @@ message
|
|||
assert not (a or not (b or c))
|
||||
assert not (a or not (b and c))
|
||||
|
||||
# detected, but no autofix for messages
|
||||
# detected, but no fix for messages
|
||||
assert something and something_else, "error message"
|
||||
assert not (something or something_else and something_third), "with message"
|
||||
# detected, but no autofix for mixed conditions (e.g. `a or b and c`)
|
||||
# detected, but no fix for mixed conditions (e.g. `a or b and c`)
|
||||
assert not (something or something_else and something_third)
|
||||
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ def foo():
|
|||
return x
|
||||
|
||||
|
||||
# Autofix cases
|
||||
# Fix cases
|
||||
def foo():
|
||||
a = 1
|
||||
b=a
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Test case for autofixing F841 violations."""
|
||||
"""Test case for fixing F841 violations."""
|
||||
|
||||
|
||||
def f():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue