-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
Code StyleCode style, linting, code_checksCode style, linting, code_checks
Milestone
Description
The docstring reads
pandas/scripts/validate_unwanted_patterns.py
Lines 355 to 361 in 9ab55b4
| For example, this is bad: | |
| >>> rule = ( | |
| ... "We want the space at the begging of " | |
| ... "the line if the previous line is ending with a \n " | |
| ... "not at the end, like always" | |
| ... ) |
yet this file doesn't error if the script is run on it:
$ cat t.py
rule = (
"We want the space at the begging of "
"the line if the previous line is ending with a \n "
"not at the end, like always"
)
$ python scripts/validate_unwanted_patterns.py -vt 'strings_with_wrong_placed_whitespace' t.py Some other files which don't error, though I can't understand why:
$ cat t.py
rule = (
" We want the space at the begging of"
" the line if the previous line is ending with a \n "
"not at the end, like always"
)
$ python scripts/validate_unwanted_patterns.py -vt 'strings_with_wrong_placed_whitespace' t.py $ cat t.py
rule = (
"We want the space at the begging of"
" the line if the previous line is ending with a "
"not at the end, like always"
)
$ python scripts/validate_unwanted_patterns.py -vt 'strings_with_wrong_placed_whitespace' t.pyHi @ShaharNaveh @datapythonista - do you have any context you could provide on the trailing newline rule? I'm struggling to make sense of it - thanks :)
Metadata
Metadata
Assignees
Labels
Code StyleCode style, linting, code_checksCode style, linting, code_checks