From 4bd9b08cfb2029ecdfeb00a7fb5f28ad3639db86 Mon Sep 17 00:00:00 2001 From: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com> Date: Thu, 12 Feb 2026 12:52:01 +0100 Subject: [PATCH] core: Apply CSpell corrections. (#20191) --- authentik/admin/files/backends/base.py | 2 +- authentik/api/schema.py | 2 +- authentik/blueprints/v1/importer.py | 4 ++-- authentik/core/api/applications.py | 4 ++-- authentik/core/tests/test_property_mapping_api.py | 2 +- authentik/providers/oauth2/views/authorize.py | 2 +- authentik/providers/oauth2/views/token.py | 2 +- authentik/providers/scim/clients/schema.py | 4 ++-- authentik/stages/captcha/stage.py | 4 ++-- authentik/stages/consent/stage.py | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/authentik/admin/files/backends/base.py b/authentik/admin/files/backends/base.py index 0800e6467f..db1c0ba820 100644 --- a/authentik/admin/files/backends/base.py +++ b/authentik/admin/files/backends/base.py @@ -94,7 +94,7 @@ class Backend: Args: file_path: Relative file path - request: Optional Django HttpRequest for fully qualifed URL building + request: Optional Django HttpRequest for fully qualified URL building use_cache: whether to retrieve the URL from cache Returns: diff --git a/authentik/api/schema.py b/authentik/api/schema.py index d3522d6f24..da8c88122d 100644 --- a/authentik/api/schema.py +++ b/authentik/api/schema.py @@ -71,7 +71,7 @@ def postprocess_schema_responses( def postprocess_schema_query_params( result: dict[str, Any], generator: SchemaGenerator, **kwargs ) -> dict[str, Any]: - """Optimise pagination parameters, instead of redeclaring parameters for each endpoint + """Optimize pagination parameters, instead of redeclaring parameters for each endpoint declare them globally and refer to them""" LOGGER.debug("Deduplicating query parameters") for path in result["paths"].values(): diff --git a/authentik/blueprints/v1/importer.py b/authentik/blueprints/v1/importer.py index 991516daff..ed43187961 100644 --- a/authentik/blueprints/v1/importer.py +++ b/authentik/blueprints/v1/importer.py @@ -272,7 +272,7 @@ class Importer: and entry.state != BlueprintEntryDesiredState.MUST_CREATED ): self.logger.debug( - "Initialise serializer with instance", + "Initialize serializer with instance", model=model, instance=model_instance, pk=model_instance.pk, @@ -290,7 +290,7 @@ class Importer: ) else: self.logger.debug( - "Initialised new serializer instance", + "Initialized new serializer instance", model=model, **cleanse_dict(updated_identifiers), ) diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index ee2af1321f..6c442ce431 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -154,14 +154,14 @@ class ApplicationViewSet(UsedByMixin, ModelViewSet): return queryset def _get_allowed_applications( - self, pagined_apps: Iterator[Application], user: User | None = None + self, paginated_apps: Iterator[Application], user: User | None = None ) -> list[Application]: applications = [] request = self.request._request if user: request = copy(request) request.user = user - for application in pagined_apps: + for application in paginated_apps: engine = PolicyEngine(application, request.user, request) engine.build() if engine.passing: diff --git a/authentik/core/tests/test_property_mapping_api.py b/authentik/core/tests/test_property_mapping_api.py index 6afe40a181..5da9200a9f 100644 --- a/authentik/core/tests/test_property_mapping_api.py +++ b/authentik/core/tests/test_property_mapping_api.py @@ -63,7 +63,7 @@ class TestPropertyMappingAPI(APITestCase): PropertyMappingSerializer().validate_expression("/") def test_types(self): - """Test PropertyMappigns's types endpoint""" + """Test PropertyMapping's types endpoint""" response = self.client.get( reverse("authentik_api:propertymapping-types"), ) diff --git a/authentik/providers/oauth2/views/authorize.py b/authentik/providers/oauth2/views/authorize.py index bc2744c3be..e263515ea8 100644 --- a/authentik/providers/oauth2/views/authorize.py +++ b/authentik/providers/oauth2/views/authorize.py @@ -432,7 +432,7 @@ class AuthorizationFlowInitView(BufferedPolicyAccessView): return response def dispatch(self, request: HttpRequest, *args, **kwargs): - # Activate language before parsing params (error messages should be localised) + # Activate language before parsing params (error messages should be localized) return self.dispatch_with_language(request, *args, **kwargs) def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: diff --git a/authentik/providers/oauth2/views/token.py b/authentik/providers/oauth2/views/token.py index 8d01bc5ff2..a4f6ca5af2 100644 --- a/authentik/providers/oauth2/views/token.py +++ b/authentik/providers/oauth2/views/token.py @@ -368,7 +368,7 @@ class TokenParams: ) -> tuple[dict, OAuthSource] | tuple[None, None]: # Fully decode the JWT without verifying the signature, so we can get access to # the header. - # Get the Key ID from the header, and use that to optimise our source query to only find + # Get the Key ID from the header, and use that to optimize our source query to only find # sources that have a JWK for that Key ID # The Key ID doesn't have a fixed format, but must match between an issued JWT # and whatever is returned by the JWKS endpoint diff --git a/authentik/providers/scim/clients/schema.py b/authentik/providers/scim/clients/schema.py index f76e0b61ec..876afc0b29 100644 --- a/authentik/providers/scim/clients/schema.py +++ b/authentik/providers/scim/clients/schema.py @@ -65,7 +65,7 @@ class EnterpriseUser(BaseModel): employeeNumber: str | None = Field( None, description="Numeric or alphanumeric identifier assigned to a person, " - "typically based on order of hire or association with anorganization.", + "typically based on order of hire or association with an organization.", ) costCenter: str | None = Field(None, description="Identifies the name of a cost center.") organization: str | None = Field(None, description="Identifies the name of an organization.") @@ -73,7 +73,7 @@ class EnterpriseUser(BaseModel): department: str | None = Field( None, description="Numeric or alphanumeric identifier assigned to a person," - " typically based on order of hire or association with anorganization.", + " typically based on order of hire or association with an organization.", ) manager: Manager | None = Field( None, diff --git a/authentik/stages/captcha/stage.py b/authentik/stages/captcha/stage.py index 160ea21489..9e582e5614 100644 --- a/authentik/stages/captcha/stage.py +++ b/authentik/stages/captcha/stage.py @@ -58,7 +58,7 @@ def verify_captcha_token(stage: CaptchaStage, token: str, remote_ip: str, key: s # [reCAPTCHA](https://developers.google.com/recaptcha/docs/verify#error_code_reference) # [hCaptcha](https://docs.hcaptcha.com/#siteverify-error-codes-table) # [Turnstile](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/#error-codes) - retriable_error_codes = [ + retryable_error_codes = [ "missing-input-response", "invalid-input-response", "timeout-or-duplicate", @@ -66,7 +66,7 @@ def verify_captcha_token(stage: CaptchaStage, token: str, remote_ip: str, key: s "already-seen-response", ] - if set(error_codes).issubset(set(retriable_error_codes)): + if set(error_codes).issubset(set(retryable_error_codes)): error_message = _("Invalid captcha response. Retrying may solve this issue.") else: error_message = _("Invalid captcha response") diff --git a/authentik/stages/consent/stage.py b/authentik/stages/consent/stage.py index 8a634d2156..5bda127410 100644 --- a/authentik/stages/consent/stage.py +++ b/authentik/stages/consent/stage.py @@ -80,7 +80,7 @@ class ConsentStageView(ChallengeStageView): def should_always_prompt(self) -> bool: """Check if the current request should require a prompt for non consent reasons, - i.e. this stage injected from another stage, mode is always requireed or no application + i.e. this stage injected from another stage, mode is always required or no application is set.""" current_stage: ConsentStage = self.executor.current_stage # Make this StageView work when injected, in which case `current_stage` is an instance