From 7ad7b0ea7aee103380a394cae87f3971d4c131cf Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 22 Jan 2013 10:38:47 -0500 Subject: [PATCH] pep8 will now recognize .flake8 But this will not guarantee that a section titled `[flake8]` will be parsed. This will take more work. re: #56 --- flake8/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake8/main.py b/flake8/main.py index 1beb606..caa61f8 100644 --- a/flake8/main.py +++ b/flake8/main.py @@ -7,13 +7,14 @@ from flake8 import mccabe from flake8.util import _initpep8, skip_file, get_parser pep8style = None +pep8.PROJECT_CONFIG = ('.flake8', '.pep8', 'tox.ini', 'setup.cfg') def main(): global pep8style # parse out our flags so pep8 doesn't get confused parser = get_parser() - opts, _ = parser.parse_args() + opts, _ = pep8.process_options(parse_argv=True, parser=parser) if opts.install_hook: from flake8.hooks import install_hook