From f02f012c7c13b8caa946d782ef8f6775972972bd Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Sun, 5 Jan 2020 17:33:50 -0800 Subject: Fix issue #812: error reporting incorrect --- isort/api.py | 2 +- isort/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'isort') diff --git a/isort/api.py b/isort/api.py index 99d717eb..bf86cd0e 100644 --- a/isort/api.py +++ b/isort/api.py @@ -112,7 +112,7 @@ def check_imports( print(f"SUCCESS: {file_path or ''} Everything Looks Good!") return True else: - print(f"ERROR: {file_path or ''} Imports are incorrectly sorted.") + print(f"ERROR: {file_path or ''} Imports are incorrectly sorted and/or formatted.") if show_diff: show_unified_diff( file_input=file_contents, file_output=sorted_output, file_path=file_path diff --git a/isort/main.py b/isort/main.py index dfd09873..5d48f84c 100644 --- a/isort/main.py +++ b/isort/main.py @@ -296,8 +296,8 @@ def parse_args(argv: Optional[Sequence[str]] = None) -> Dict[str, Any]: action="store_true", help="Turns off default behavior that removes direct imports when as imports exist.", ) - parser.add_argument("-lai", "--lines-after-imports", dest="lines_after_imports", type=int) - parser.add_argument("-lbt", "--lines-between-types", dest="lines_between_types", type=int) + parser.add_argument("--lai", "--lines-after-imports", dest="lines_after_imports", type=int) + parser.add_argument("--lbt", "--lines-between-types", dest="lines_between_types", type=int) parser.add_argument( "--le", "--line-ending", -- cgit v1.2.1