Correctly parse include_only_with_project_file when set to false #161

This commit is contained in:
Alan Hamlett 2018-12-19 07:33:30 -08:00
parent f958236b5d
commit cfc93ff35c
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ exclude =
^/etc/ ^/etc/
include = include =
.* .*
include_only_with_project_file = false
offline = false offline = false
proxy = https://user:pass@localhost:8080 proxy = https://user:pass@localhost:8080
no_ssl_verify = false no_ssl_verify = false

View File

@ -275,7 +275,7 @@ def parse_arguments():
except TypeError: # pragma: nocover except TypeError: # pragma: nocover
pass pass
if not args.include_only_with_project_file and configs.has_option('settings', 'include_only_with_project_file'): if not args.include_only_with_project_file and configs.has_option('settings', 'include_only_with_project_file'):
args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file') args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file') == 'true'
if not args.include: if not args.include:
args.include = [] args.include = []
if configs.has_option('settings', 'include'): if configs.has_option('settings', 'include'):