Top "Flake8" questions

Automatic syntax checker for Python, bundled with pycodestyle, pyflakes and mccabe.

How do I get flake8 to reliably ignore rules in VS Code?

Two things that annoy me. First is the warning Flake8 gives me when I type more than 80 characters on a …

visual-studio-code flake8
Flake8: Ignore specific warning for entire file

The Ignoring Errors docs currently list a way of ignoring a particular error for a particular line: example = lambda: 'example' # …

python flake8
How do I enable auto code formatting for flake8 in PyCharm

I use Tox to run unit tests, with a flake8 command that checks for code formatting errors. Each time I …

python plugins pycharm pep8 flake8
Using Flake8 in VSCode...?

My VSCode is using a locally installed anaconda environment, at the default directory, which places it in Program Files. Because …

python visual-studio-code anaconda flake8
Per-project flake8 max line length?

I'm using a Flake8 git hook in my project and I want to relax the line length limit, but only …

python git flake8
flake8 complains on boolean comparison "==" in filter clause

I have a boolean field in the mysql db table. # table model class TestCase(Base): __tablename__ = 'test_cases' ... obsoleted = Column(…

python mysql sqlalchemy flake8
Descriptive flake8 errors in PyCharm

PyCharm does not have a built-in support for flake8 at the moment. But, flake8 can be configured to run as …

python pycharm static-code-analysis flake8
How to use flake8 for Python 3 ?

In this code snippet, def add(x:int, y:int) -> int: return x + y there are function annotations …

python python-3.x flake8
python pep8 class in init imported but not used

I'm doing PEP8 checks in python using the python flake8 library. I have an import statement in an __init__.py …

python pep8 flake8
How to tell flake8 to ignore comments

I'm using flake8 in emacs in order to clean up my python code. I find it annoying to have my …

python pep8 flake8