Skip to content

Commit aebff5b

Browse files
randy3kgatesn
authored andcommitted
load pycodestyle user config file (#110)
close #109
1 parent 2c096e5 commit aebff5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyls/plugins/pycodestyle_lint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
def pyls_lint(config, document):
1414
# Read config from all over the place
1515
config_files = config.find_parents(document.path, CONFIG_FILES)
16+
if pycodestyle.USER_CONFIG:
17+
config_files.append(pycodestyle.USER_CONFIG)
1618
pycodestyle_conf = pyls_config.build_config('pycodestyle', config_files)
1719
pep8_conf = pyls_config.build_config('pep8', config_files)
1820

0 commit comments

Comments
 (0)