JDiMatteo
JDiMatteo

Reputation: 13130

how to only use pyflakes checks with pep8 (never style checks)?

I'm migrating from pyflakes to flake8 to get the # noqa line ignore feature. To ease the migration, I'd like to start with only checking whatever pyflakes was previously checking, and I like pyflakes simple promise to "will never complain about style". Can I just use flake8 --select F to start with whatever was reported by pyflakes?

flake8 allows selecting or disabling specific error codes like F401 "module imported but unused". What does F stand for?

The flake8 error-code documentation doesn't list all error codes.

Upvotes: 2

Views: 755

Answers (1)

JDiMatteo
JDiMatteo

Reputation: 13130

Yes, to only use pyflakes:

flake8 --select F

flake8 documents the F and C "classes" on the pyflakes glossary:

Upvotes: 4

Related Questions