flake8-use-fstring icon indicating copy to clipboard operation
flake8-use-fstring copied to clipboard

Consistent format with or without leading trailing white space

Open cleder opened this issue 4 years ago • 1 comments

https://www.python.org/dev/peps/pep-0498/#leading-and-trailing-whitespace-in-expressions-is-ignored

Leading and trailing whitespace in expressions is ignored For ease of readability, leading and trailing whitespace in expressions is ignored. This is a by-product of enclosing the expression in parentheses before evaluation.

It would be nice if this plugin could enforce consistent behaviour though e.g:

FS004 : Missing leading or trailing whitespace FS104 : Leading or trailing whitespace disallowed

The user should then be forced to ignore one or the other behaviour

cleder avatar Mar 09 '21 12:03 cleder

Hi @cleder , there are no plans for me to add new features at the moment. If you would like to contribute, I'm happy to review, merge and publish your contribution.

MichaelKim0407 avatar Mar 10 '21 03:03 MichaelKim0407