Skip to content

Instantly share code, notes, and snippets.

@adamloving adamloving/.flake8.ini
Last active Oct 4, 2018

Embed
What would you like to do?
flake8 python linting configuration file
# on macOS, put this in ~/.config/flake8
[flake8]
max-line-length=88
ignore=
#E302 expected 2 blank lines, found 1
E302,
#E261 at least two spaces before inline comment
E261,
# E401 multiple imports on one line
E401,
# E221 multiple spaces before operator
E221,
# E201 whitespace after '{'
# E201, E202,
E241 multiple spaces after ':'
E241,
# E701 multiple statements on one line (colon)
E701
@davepeck

This comment has been minimized.

Copy link

commented Aug 30, 2018

I currently do: E128,E241,E251,E501,E265,E261,W293,E303,W291,W391,E702,E302,D100,D101,D102,D103,D200,D201,D210,D203,D204,D400,D401,D205,E111

Need to revisit & document each; I accumulated these over a long period of time and several projects and no longer remember what each does!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.