From 17553e6192af0aef41aeebfe910d51dbe91b6b86 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 23 Nov 2015 10:20:42 -0600 Subject: [PATCH] Add .flake8 to PROJECT_CONFIG for local config files --- CHANGES.rst | 8 ++++++++ flake8/engine.py | 2 ++ 2 files changed, 10 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 785146d..1762334 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,14 @@ CHANGES ======= +2.x.y - 2015-aa-bb +------------------ + +- **Bug** Properly look for ``.flake8`` in current working directory + (`GitLab#103`_) + +.. _GitLab#103: https://gitlab.com/pycqa/flake8/issues/103 + 2.5.0 - 2015-10-26 ------------------ diff --git a/flake8/engine.py b/flake8/engine.py index cfdc269..d8345ad 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -16,6 +16,8 @@ _flake8_noqa = re.compile(r'\s*# flake8[:=]\s*noqa', re.I).search EXTRA_EXCLUDE = ['.tox', '.eggs', '*.egg'] +pep8.PROJECT_CONFIG += ('.flake8',) + def _load_entry_point(entry_point, verify_requirements): """Based on the version of setuptools load an entry-point correctly.