From 6cc047e13719e4cf70c4f65711817acacb96c0fb Mon Sep 17 00:00:00 2001 From: Stephen Brown II Date: Wed, 15 Jan 2020 16:11:11 -0700 Subject: Add --ensure-newline-before-comments argument --- isort/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/isort/main.py b/isort/main.py index ca94c4ac..de3dfda3 100644 --- a/isort/main.py +++ b/isort/main.py @@ -277,6 +277,13 @@ def parse_args(argv: Optional[Sequence[str]] = None) -> Dict[str, Any]: help="Multi line output (0-grid, 1-vertical, 2-hanging, 3-vert-hanging, 4-vert-grid, " "5-vert-grid-grouped, 6-vert-grid-grouped-no-comma).", ) + parser.add_argument( + "-n", + "--ensure-newline-before-comments", + dest="ensure_newline_before_comments", + action="store_true", + help="Inserts a blank line before a comment following an import.", + ) inline_args_group.add_argument( "--nis", "--no-inline-sort", -- cgit v1.2.1