Commits

Ian Cordasco  committed 8fe9bfb

Fixes #66

flake8 will defer to local configurations first but then will check global
per-user configuration

  • Participants
  • Parent commits d3be6ab
  • Branches pyflakes

Comments (0)

Files changed (1)

File flake8/util.py

 
 
 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')):