From 5ab98117ba9fdab39a288e5922cdfbebf6031afd Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Fri, 8 Feb 2013 18:26:18 -0500 Subject: [PATCH] Fixes #66 flake8 will defer to local configurations first but then will check global per-user configuration --- flake8/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake8/util.py b/flake8/util.py index d98c0ba..0d0f971 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -49,7 +49,9 @@ def get_parser(): def read_config(opts, opt_parser): - configs = ('.flake8', '.pep8', 'tox.ini', 'setup.cfg',) + configs = ('.flake8', '.pep8', 'tox.ini', 'setup.cfg', + os.path.expanduser(r'~\.flake8'), + os.path.join(os.path.expanduser('~/.config'), 'flake8') parser = ConfigParser() files_found = parser.read(configs) if not (files_found and parser.has_section('flake8')):