mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Fix typos found by codespell (#9346)
## Summary Fix typos found by [codespell](https://github.com/codespell-project/codespell). ## Test Plan CI tests.
This commit is contained in:
parent
cd0493db2a
commit
d04d49cc0e
15 changed files with 46 additions and 46 deletions
|
@ -5,7 +5,7 @@ def foo2(parameter_1, parameter_2, parameter_3, parameter_4, parameter_5, parame
|
|||
def foo3(parameter_1, parameter_2, parameter_3, parameter_4, parameter_5, parameter_6, parameter_7): pass
|
||||
def foo4(parameter_1, parameter_2, parameter_3, parameter_4, parameter_5, parameter_6, parameter_7): pass
|
||||
|
||||
# Adding some unformated code covering a wide range of syntaxes.
|
||||
# Adding some unformatted code covering a wide range of syntaxes.
|
||||
|
||||
if True:
|
||||
# Incorrectly indented prefix comments.
|
||||
|
|
|
@ -28,7 +28,7 @@ def foo3(
|
|||
|
||||
def foo4(parameter_1, parameter_2, parameter_3, parameter_4, parameter_5, parameter_6, parameter_7): pass
|
||||
|
||||
# Adding some unformated code covering a wide range of syntaxes.
|
||||
# Adding some unformatted code covering a wide range of syntaxes.
|
||||
|
||||
if True:
|
||||
# Incorrectly indented prefix comments.
|
||||
|
|
|
@ -19,7 +19,7 @@ z: (Short
|
|||
z: (int) = 2.3
|
||||
z: ((int)) = foo()
|
||||
|
||||
# In case I go for not enforcing parantheses, this might get improved at the same time
|
||||
# In case I go for not enforcing parentheses, this might get improved at the same time
|
||||
x = (
|
||||
z
|
||||
== 9999999999999999999999999999999999999999
|
||||
|
|
|
@ -28,7 +28,7 @@ z: Short | Short2 | Short3 | Short4 = 8
|
|||
z: int = 2.3
|
||||
z: int = foo()
|
||||
|
||||
# In case I go for not enforcing parantheses, this might get improved at the same time
|
||||
# In case I go for not enforcing parentheses, this might get improved at the same time
|
||||
x = (
|
||||
z
|
||||
== 9999999999999999999999999999999999999999
|
||||
|
|
|
@ -32,7 +32,7 @@ def import_fixture(fixture: Path, fixture_set: str):
|
|||
input.append(line)
|
||||
|
||||
if not expected:
|
||||
# If there's no output marker, tread the whole file as already pre-formatted
|
||||
# If there's no output marker, treat the whole file as already pre-formatted
|
||||
expected = input
|
||||
|
||||
options = {}
|
||||
|
|
|
@ -227,7 +227,7 @@ def doctest_varying_start_column():
|
|||
# actually extend past the configured line limit.
|
||||
#
|
||||
# It's not quite clear whether this is desirable or not. We could in
|
||||
# theory compute the intendation length of a code snippet and then
|
||||
# theory compute the indentation length of a code snippet and then
|
||||
# adjust the line-width setting on a recursive call to the formatter.
|
||||
# But there are assuredly pathological cases to consider. Another path
|
||||
# would be to expose another formatter option for controlling the
|
||||
|
@ -244,7 +244,7 @@ def doctest_long_lines():
|
|||
But this one is long enough to get wrapped.
|
||||
>>> foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey, spider, bear, leopard)
|
||||
'''
|
||||
# This demostrates a normal line that will get wrapped but won't
|
||||
# This demonstrates a normal line that will get wrapped but won't
|
||||
# get wrapped in the docstring above because of how the line-width
|
||||
# setting gets reset at the first column in each code snippet.
|
||||
foo, bar, quux = this_is_a_long_line(lion, giraffe, hippo, zeba, lemur, penguin, monkey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue