sampleproject icon indicating copy to clipboard operation
sampleproject copied to clipboard

Flake8 configuration should not use select

Open sw opened this issue 1 year ago • 0 comments

The flake8 configuration in tox.ini uses the select option: https://github.com/pypa/sampleproject/blob/3fb1461c7c13b6832ed0f25625b19f2d321a74b7/tox.ini#L45

The problem is that this enables the W503 warning ("line break before binary operator") which is an incompatibility with the Black formatter and therefore disabled by default. The Black website has section on interoperability

The flake8 documentation states:

You usually do not need to specify this option as the default includes all installed plugin codes.

My suggestion would be to remove that line. Or is it needed for some other reason I'm not aware of?

sw avatar Feb 19 '24 15:02 sw