Skip to content

Commit 633744e

Browse files
authored
Fix typos discovered by codespell (#950)
1 parent bed7ca5 commit 633744e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

CHANGELOG

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- Look at the 'pyproject.toml' file to see if it contains style information for
2424
YAPF.
2525
### Changed
26-
- Do not scan exlcuded directories. Prior versions would scan an exluded
26+
- Do not scan excluded directories. Prior versions would scan an excluded
2727
folder then exclude its contents on a file by file basis. Preventing the
2828
folder being scanned is faster.
2929
### Fixed
@@ -252,7 +252,7 @@
252252
### Fixed
253253
- Use tabs when constructing a continuation line when `USE_TABS` is enabled.
254254
- A dictionary entry may not end in a colon, but may be an "unpacking"
255-
operation: `**foo`. Take that into accound and don't split after the
255+
operation: `**foo`. Take that into account and don't split after the
256256
unpacking operator.
257257

258258
## [0.20.1] 2018-01-13
@@ -675,7 +675,7 @@
675675
- Retain proper vertical spacing before comments in a data literal.
676676
- Make sure that continuations from a compound statement are distinguished from
677677
the succeeding line.
678-
- Ignore preceding comments when calculating what is a "dictonary maker".
678+
- Ignore preceding comments when calculating what is a "dictionary maker".
679679
- Add a small penalty for splitting before a closing bracket.
680680
- Ensure that a space is enforced after we remove a pseudo-paren that's between
681681
two names, keywords, numbers, etc.
@@ -703,7 +703,7 @@
703703
- Improve splitting heuristic when the first argument to a function call is
704704
itself a function call with arguments. In cases like this, the remaining
705705
arguments to the function call would look badly aligned, even though they are
706-
techincally correct (the best kind of correct!).
706+
technically correct (the best kind of correct!).
707707
- Improve splitting heuristic more so that if the first argument to a function
708708
call is a data literal that will go over the column limit, then we want to
709709
split before it.

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ confidence=
5555
# can either give multiple identifiers separated by comma (,) or put this
5656
# option multiple times (only on the command line, not in the configuration
5757
# file where it should appear only once).You can also use "--disable=all" to
58-
# disable everything first and then reenable specific checks. For example, if
58+
# disable everything first and then re-enable specific checks. For example, if
5959
# you want to run only the similarities checker, you can use "--disable=all
6060
# --enable=similarities". If you want to run only the classes checker, but have
6161
# no Warning level messages displayed, use"--disable=all --enable=classes

yapf/yapflib/format_decision_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def SurroundedByParens(token):
446446

447447
# A function call with a dictionary as its first argument may result in
448448
# unreadable formatting if the dictionary spans multiple lines. The
449-
# dictionary itself is formatted just fine, but the remaning arguments are
449+
# dictionary itself is formatted just fine, but the remaining arguments are
450450
# indented too far:
451451
#
452452
# function_call({

yapf/yapflib/pytree_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
It also exports a basic "dumping" visitor that dumps a textual representation of
2020
a pytree into a stream.
2121
22-
PyTreeVisitor: a generic visitor pattern fo pytrees.
22+
PyTreeVisitor: a generic visitor pattern for pytrees.
2323
PyTreeDumper: a configurable "dumper" for displaying pytrees.
2424
DumpPyTree(): a convenience function to dump a pytree.
2525
"""

yapftests/reformatter_basic_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ def _():
24332433
AAAAAAAAAAAAAAAAAAAAAAAA = {
24342434
Environment.XXXXXXXXXX: 'some text more text even more tex',
24352435
Environment.YYYYYYY: 'some text more text even more text yet ag',
2436-
Environment.ZZZZZZZZZZZ: 'some text more text even mor etext yet again tex',
2436+
Environment.ZZZZZZZZZZZ: 'some text more text even more text yet again tex',
24372437
}
24382438
""")
24392439
uwlines = yapf_test_helper.ParseAndUnwrap(code)

yapftests/reformatter_buganizer_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ def main(unused_argv):
21512151
ok = an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A]
21522152
bad_slice = map(math.sqrt, an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A])
21532153
a_long_name_slicing = an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A]
2154-
bad_slice = ("I am a crazy, no good, string whats too long, etc." + " no really ")[:ARBITRARY_CONSTANT_A]
2154+
bad_slice = ("I am a crazy, no good, string what's too long, etc." + " no really ")[:ARBITRARY_CONSTANT_A]
21552155
""")
21562156
expected_formatted_code = textwrap.dedent("""\
21572157
def main(unused_argv):
@@ -2162,7 +2162,7 @@ def main(unused_argv):
21622162
an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A])
21632163
a_long_name_slicing = an_array_with_an_exceedingly_long_name[:
21642164
ARBITRARY_CONSTANT_A]
2165-
bad_slice = ("I am a crazy, no good, string whats too long, etc." +
2165+
bad_slice = ("I am a crazy, no good, string what's too long, etc." +
21662166
" no really ")[:ARBITRARY_CONSTANT_A]
21672167
""")
21682168
uwlines = yapf_test_helper.ParseAndUnwrap(unformatted_code)

0 commit comments

Comments
 (0)