forked from neomake/neomake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: flake8: fix length processing in f-strings
"F821 undefined name 'bar'" with `f'foo bar'` refers to the beginning of the f-string, and therefore the entry's `length` property should not be set. This changes the flake8 postprocessing to use the generic length postprocessor, which results in no `length` attribute for this entry (since it checks if the text is there). A proper fix would be to search for the next `{bar}`, and adjust the lnum/col also.
- Loading branch information
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters