Skip to content

Commit

Permalink
option to skip models
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Feb 1, 2024
1 parent 42cba29 commit 78400da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion edc_form_runners/management/commands/run_form_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def add_arguments(self, parser):
"--skip_model",
dest="skip_model_names",
default="",
help="model name to skip in label_lower format, if more than one separate by comma",
help="model to skip in label_lower format, if more than one separate by comma",
)

parser.add_argument(
Expand All @@ -43,6 +43,7 @@ def add_arguments(self, parser):

def handle(self, *args, **options):
debug = options["debug"]

app_labels = options["app_labels"] or []
if app_labels:
app_labels = options["app_labels"].split(",")
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ exclude =
[flake8]
ignore = E226,W503,E203
max-line-length = 95
max-complexity = 11
max-complexity = 13
exclude = */migrations/*,.tox,.git,__pycache__,build,dist,.eggs
per-file-ignores = __init__.py: F401

0 comments on commit 78400da

Please sign in to comment.