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
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.
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 whitespaceFS104
: Leading or trailing whitespace disallowedThe user should then be forced to ignore one or the other behaviour