On Mon, Dec 29, 2014 at 1:57 PM, Jason Killen <jsnk...@gmail.com> wrote: > I've just started using flake8. I'm using 2.2.5 (pep8: 1.5.7, pyflakes: > 0.8.1, mccabe: 0.3, flake8-debugger: 1.3.2) CPython 2.7.1 on Darwin > > Config files don't seem to be being read in. I've tried defining it > (config.cfg) using --config, putting it in ., putting it in everything up > from ., and putting it in ~/.config/flake8. No matter what I try flake8 > doesn't seem to be picking them up. Using --ignore works fine. > > Here's my config file: > [flake8] > max-line-length = 200 > # E251 unexpected spaces around keyword / parameter equals > # E711 comparison to None should be if cond is not None > # E501 line too long (203 > 200 characters) > # E303 too many blank lines (2) > # E712 comparison to True should be 'if cond is not True:' or 'if not cond:' > # E302 expected 2 blank lines, found 1 > # E226 missing whitespace around arithmetic operator > # W291 trailing whitespace > # W293 blank line contains whitespace > # W391 blank line at end of file > # E111 indentation is not a multiple of four > # E702 multiple statements on one line (semicolon) > ignore = E251,E711,E501,E303,E712,E302,E226,W291,W293,W391,E111,E702,E265 > > Help please?
Hey Jason, pep8 handles discovery and parsing of config files for flake8. Looking at what pep8 tries to find, your options are ~/.config/pep8, ./tox.ini, and ./setup.cfg. As for why using --config doesn't work, I haven't tried that but that would also be a bug found in pep8. I'll see if I can reproduce that though. Cheers, Ian flake8 maintainer _______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality