From 1de4debc3ed4b94d599c8d2bae1a68db88a27864 Mon Sep 17 00:00:00 2001 From: Seamus Johnston Date: Thu, 29 Sep 2022 08:16:55 -0500 Subject: [PATCH] Ensure manage.py lint fails when linters fail --- src/registrar/management/commands/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registrar/management/commands/lint.py b/src/registrar/management/commands/lint.py index 964c63098..0710c4ba8 100644 --- a/src/registrar/management/commands/lint.py +++ b/src/registrar/management/commands/lint.py @@ -51,7 +51,7 @@ class Command(BaseCommand): f"{' '.join(linter['args'])}" ) ) - break + raise CalledProcessError(result.returncode, linter["args"]) else: self.stdout.write( f"[manage.py lint] {linter['purpose']} completed with success!"