Skip to content

Commit

Permalink
Merge pull request #249 from vintasoftware/pylint-config
Browse files Browse the repository at this point in the history
Add option to set pylintrc inside prospector.yml
  • Loading branch information
carlio authored Jul 22, 2018
2 parents f431c83 + 1f63bf7 commit 2455f10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prospector/tools/pylint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def configure(self, prospector_config, found_files):
linter = ProspectorLinter(found_files)
if prospector_config.use_external_config('pylint'):
# try to find a .pylintrc
pylintrc = prospector_config.external_config_location('pylint')
pylint_options = prospector_config.tool_options('pylint')
pylintrc = pylint_options.get('config_file')
external_config = prospector_config.external_config_location('pylint')
if pylintrc is None or external_config:
pylintrc = external_config
if pylintrc is None:
pylintrc = find_pylintrc()
if pylintrc is None:
Expand Down

0 comments on commit 2455f10

Please sign in to comment.