We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 127f20d commit 2919daaCopy full SHA for 2919daa
1 file changed
linter.py
@@ -67,9 +67,7 @@ def onError(msg):
67
parser.error = onError
68
pycodestyle_options, _ = process_options([os.curdir], True, True, parser=parser)
69
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):
+ if pycodestyle_options.config:
73
pycodestyle_options = vars(pycodestyle_options)
74
pycodestyle_options.pop('reporter', None)
75
for opt_n, opt_v in pycodestyle_options.items():
0 commit comments