Document (README & CHANGELOG) and rename option to 'exclude-migration-tests'

This commit is contained in:
David Wobrock committed 2019-07-28 12:28:56 +02:00
1 parent 579e7c68b4
commit af4b11c563
5 files changed
+48 -36

No files matched your search

@@ -50,11 +50,6 @@ class Command(BaseCommand):
"--project-root-path", type=str, nargs="?", help="django project root path"
)
parser.add_argument(
"--exclude-tests", type=str, nargs="*", help="Specify tests to be ignored"
" (e.g. ALTER_COLUMN)"
)
cache_group = parser.add_mutually_exclusive_group(required=False)
cache_group.add_argument(
"--cache-path",
@@ -93,6 +88,13 @@ class Command(BaseCommand):
help="check only migrations that have already been applied to the database",
)
parser.add_argument(
"--exclude-migration-tests",
type=str,
nargs="*",
help="Specify backward incompatible migration tests to be ignored (e.g. ALTER_COLUMN)",
)
def handle(self, *args, **options):
if options["project_root_path"]:
settings_path = options["project_root_path"]
@@ -112,12 +114,12 @@ class Command(BaseCommand):
ignore_name=options["ignore_name"],
include_apps=options["include_apps"],
exclude_apps=options["exclude_apps"],
exclude_tests=options["exclude_tests"],
database=options["database"],
cache_path=options["cache_path"],
no_cache=options["no_cache"],
only_applied_migrations=options["applied_migrations"],
only_unapplied_migrations=options["unapplied_migrations"],
exclude_migration_tests=options["exclude_migration_tests"],
)
linter.lint_all_migrations(git_commit_id=options["commit_id"])
linter.print_summary()