PyCQA / flake8

flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
https://flake8.pycqa.org
Other
3.39k stars 306 forks source link

Fix linting and test in CI #1898

Closed kurtmckee closed 9 months ago

kurtmckee commented 9 months ago

I ran tox -e linters locally on main and discovered that flake8-bugbear was reporting B018 ("useless Tuple expression") errors for two files.

This PR introduces the following changes:

This should help reduce the possibility that lint errors slip into main.

asottile commented 9 months ago

our linting is already done in CI if you scroll down