From 45e994ea05e9f2a92d835ecd42a16b1a1d037e30 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:22:50 -0700 Subject: [PATCH] Linting --- src/api/views.py | 2 +- src/registrar/forms/application_wizard.py | 4 +++- src/registrar/models/utility/domain_helper.py | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/views.py b/src/api/views.py index a98bd88a9..24960ff1c 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -92,7 +92,7 @@ def available(request, domain=""): domain = request.GET.get("domain", "") _, json_response = Domain.validate_and_handle_errors( - domain=domain, + domain=domain, error_return_type=ValidationErrorReturnType.JSON_RESPONSE, ) return json_response diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index acd1d1cfc..c29225ca6 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -461,7 +461,9 @@ class DotGovDomainForm(RegistrarForm): def clean_requested_domain(self): """Validation code for domain names.""" requested = self.cleaned_data.get("requested_domain", None) - validated, _ = DraftDomain.validate_and_handle_errors(requested, ValidationErrorReturnType.FORM_VALIDATION_ERROR) + validated, _ = DraftDomain.validate_and_handle_errors( + requested, ValidationErrorReturnType.FORM_VALIDATION_ERROR + ) return validated requested_domain = forms.CharField(label="What .gov domain do you want?") diff --git a/src/registrar/models/utility/domain_helper.py b/src/registrar/models/utility/domain_helper.py index 78e27477b..58629f213 100644 --- a/src/registrar/models/utility/domain_helper.py +++ b/src/registrar/models/utility/domain_helper.py @@ -1,4 +1,3 @@ -from enum import Enum import re from django import forms