Skip to content

Commit 2919daa

Browse files
committed
make config file work again
1 parent 127f20d commit 2919daa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

linter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def onError(msg):
6767
parser.error = onError
6868
pycodestyle_options, _ = process_options([os.curdir], True, True, parser=parser)
6969

70-
# Merge options only if the pycodestyle config file actually exists;
71-
# pycodestyle always returns a config filename, even when it doesn't exist!
72-
if os.path.isfile(pycodestyle_options.config):
70+
if pycodestyle_options.config:
7371
pycodestyle_options = vars(pycodestyle_options)
7472
pycodestyle_options.pop('reporter', None)
7573
for opt_n, opt_v in pycodestyle_options.items():

0 commit comments

Comments
 (0)