diff --git a/detect_secrets/__init__.py b/detect_secrets/__init__.py index 1da3331f..5308a7d1 100644 --- a/detect_secrets/__init__.py +++ b/detect_secrets/__init__.py @@ -1 +1 @@ -VERSION = '0.10.4' +VERSION = '0.10.5' diff --git a/detect_secrets/main.py b/detect_secrets/main.py index 59291a30..b0ef5d3b 100644 --- a/detect_secrets/main.py +++ b/detect_secrets/main.py @@ -107,7 +107,7 @@ def _perform_scan(args, plugins): def _get_existing_baseline(import_filename): - # Favors --import argument over stdin. + # Favors --update argument over stdin. if import_filename: return _read_from_file(import_filename[0]) if not sys.stdin.isatty(): diff --git a/detect_secrets/pre_commit_hook.py b/detect_secrets/pre_commit_hook.py index 63b8999f..a091089c 100644 --- a/detect_secrets/pre_commit_hook.py +++ b/detect_secrets/pre_commit_hook.py @@ -122,9 +122,11 @@ def _get_baseline_string_from_file(filename): # pragma: no cover except IOError: log.error( - 'Unable to open baseline file: %s.', filename, + 'Unable to open baseline file: {}\n' + 'Please create it via\n' + ' `detect-secrets scan > {}`\n' + .format(filename, filename), ) - raise diff --git a/requirements-dev.txt b/requirements-dev.txt index accffe15..7584619e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ coverage -flake8 +flake8==3.5.0 mock pre-commit pytest