From 1fc333e90d0328f878c8a58084eb2cba536d0b4b Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 2 Dec 2015 13:30:17 -0500 Subject: pylint/config.py: Add another check of the current working directory for `.pylintrc`. --- pylint/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylint/config.py b/pylint/config.py index 490f932..ba4e865 100644 --- a/pylint/config.py +++ b/pylint/config.py @@ -97,6 +97,8 @@ def find_pylintrc(): curdir = os.path.abspath(os.path.join(curdir, '..')) if os.path.isfile(os.path.join(curdir, 'pylintrc')): return os.path.join(curdir, 'pylintrc') + if os.path.isfile(os.path.join(curdir, '.pylintrc')): + return os.path.join(curdir, '.pylintrc') if 'PYLINTRC' in os.environ and os.path.exists(os.environ['PYLINTRC']): pylintrc = os.environ['PYLINTRC'] else: -- cgit v1.2.1