mirror of https://github.com/google/yapf.git
Fix typos discovered by codespell (#950)
parent
bed7ca5b30
commit
633744e621
|
@ -23,7 +23,7 @@
|
|||
- Look at the 'pyproject.toml' file to see if it contains style information for
|
||||
YAPF.
|
||||
### Changed
|
||||
- Do not scan exlcuded directories. Prior versions would scan an exluded
|
||||
- Do not scan excluded directories. Prior versions would scan an excluded
|
||||
folder then exclude its contents on a file by file basis. Preventing the
|
||||
folder being scanned is faster.
|
||||
### Fixed
|
||||
|
@ -252,7 +252,7 @@
|
|||
### Fixed
|
||||
- Use tabs when constructing a continuation line when `USE_TABS` is enabled.
|
||||
- A dictionary entry may not end in a colon, but may be an "unpacking"
|
||||
operation: `**foo`. Take that into accound and don't split after the
|
||||
operation: `**foo`. Take that into account and don't split after the
|
||||
unpacking operator.
|
||||
|
||||
## [0.20.1] 2018-01-13
|
||||
|
@ -675,7 +675,7 @@
|
|||
- Retain proper vertical spacing before comments in a data literal.
|
||||
- Make sure that continuations from a compound statement are distinguished from
|
||||
the succeeding line.
|
||||
- Ignore preceding comments when calculating what is a "dictonary maker".
|
||||
- Ignore preceding comments when calculating what is a "dictionary maker".
|
||||
- Add a small penalty for splitting before a closing bracket.
|
||||
- Ensure that a space is enforced after we remove a pseudo-paren that's between
|
||||
two names, keywords, numbers, etc.
|
||||
|
@ -703,7 +703,7 @@
|
|||
- Improve splitting heuristic when the first argument to a function call is
|
||||
itself a function call with arguments. In cases like this, the remaining
|
||||
arguments to the function call would look badly aligned, even though they are
|
||||
techincally correct (the best kind of correct!).
|
||||
technically correct (the best kind of correct!).
|
||||
- Improve splitting heuristic more so that if the first argument to a function
|
||||
call is a data literal that will go over the column limit, then we want to
|
||||
split before it.
|
||||
|
|
2
pylintrc
2
pylintrc
|
@ -55,7 +55,7 @@ confidence=
|
|||
# can either give multiple identifiers separated by comma (,) or put this
|
||||
# option multiple times (only on the command line, not in the configuration
|
||||
# file where it should appear only once).You can also use "--disable=all" to
|
||||
# disable everything first and then reenable specific checks. For example, if
|
||||
# disable everything first and then re-enable specific checks. For example, if
|
||||
# you want to run only the similarities checker, you can use "--disable=all
|
||||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||
|
|
|
@ -446,7 +446,7 @@ class FormatDecisionState(object):
|
|||
|
||||
# A function call with a dictionary as its first argument may result in
|
||||
# unreadable formatting if the dictionary spans multiple lines. The
|
||||
# dictionary itself is formatted just fine, but the remaning arguments are
|
||||
# dictionary itself is formatted just fine, but the remaining arguments are
|
||||
# indented too far:
|
||||
#
|
||||
# function_call({
|
||||
|
|
|
@ -19,7 +19,7 @@ and Leaf types. This module implements a visitor pattern for such trees.
|
|||
It also exports a basic "dumping" visitor that dumps a textual representation of
|
||||
a pytree into a stream.
|
||||
|
||||
PyTreeVisitor: a generic visitor pattern fo pytrees.
|
||||
PyTreeVisitor: a generic visitor pattern for pytrees.
|
||||
PyTreeDumper: a configurable "dumper" for displaying pytrees.
|
||||
DumpPyTree(): a convenience function to dump a pytree.
|
||||
"""
|
||||
|
|
|
@ -2433,7 +2433,7 @@ class A(object):
|
|||
AAAAAAAAAAAAAAAAAAAAAAAA = {
|
||||
Environment.XXXXXXXXXX: 'some text more text even more tex',
|
||||
Environment.YYYYYYY: 'some text more text even more text yet ag',
|
||||
Environment.ZZZZZZZZZZZ: 'some text more text even mor etext yet again tex',
|
||||
Environment.ZZZZZZZZZZZ: 'some text more text even more text yet again tex',
|
||||
}
|
||||
""")
|
||||
uwlines = yapf_test_helper.ParseAndUnwrap(code)
|
||||
|
|
|
@ -2151,7 +2151,7 @@ instance = (
|
|||
ok = an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A]
|
||||
bad_slice = map(math.sqrt, an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A])
|
||||
a_long_name_slicing = an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A]
|
||||
bad_slice = ("I am a crazy, no good, string whats too long, etc." + " no really ")[:ARBITRARY_CONSTANT_A]
|
||||
bad_slice = ("I am a crazy, no good, string what's too long, etc." + " no really ")[:ARBITRARY_CONSTANT_A]
|
||||
""")
|
||||
expected_formatted_code = textwrap.dedent("""\
|
||||
def main(unused_argv):
|
||||
|
@ -2162,7 +2162,7 @@ instance = (
|
|||
an_array_with_an_exceedingly_long_name[:ARBITRARY_CONSTANT_A])
|
||||
a_long_name_slicing = an_array_with_an_exceedingly_long_name[:
|
||||
ARBITRARY_CONSTANT_A]
|
||||
bad_slice = ("I am a crazy, no good, string whats too long, etc." +
|
||||
bad_slice = ("I am a crazy, no good, string what's too long, etc." +
|
||||
" no really ")[:ARBITRARY_CONSTANT_A]
|
||||
""")
|
||||
uwlines = yapf_test_helper.ParseAndUnwrap(unformatted_code)
|
||||
|
|
Loading…
Reference in New Issue