diff --git a/docker/aws/lambda.py b/docker/aws/lambda.py index 9be20f8..f48a347 100644 --- a/docker/aws/lambda.py +++ b/docker/aws/lambda.py @@ -1,4 +1,5 @@ """Creates the handler for AWS Lambda.""" # noqa: INP001 + import mangum from linguaweb_api import main diff --git a/src/linguaweb_api/core/config.py b/src/linguaweb_api/core/config.py index f42c605..83f9370 100644 --- a/src/linguaweb_api/core/config.py +++ b/src/linguaweb_api/core/config.py @@ -1,4 +1,5 @@ """Settings for the API.""" + import enum import functools import logging diff --git a/src/linguaweb_api/core/middleware.py b/src/linguaweb_api/core/middleware.py index 047b722..31345a0 100644 --- a/src/linguaweb_api/core/middleware.py +++ b/src/linguaweb_api/core/middleware.py @@ -1,4 +1,5 @@ """Middleware for the FastAPI application.""" + import logging import uuid from collections import abc diff --git a/src/linguaweb_api/core/models.py b/src/linguaweb_api/core/models.py index d0287d2..5b73af5 100644 --- a/src/linguaweb_api/core/models.py +++ b/src/linguaweb_api/core/models.py @@ -1,4 +1,5 @@ """Basic settings for all SQL tables.""" + import datetime from typing import Any diff --git a/src/linguaweb_api/core/security.py b/src/linguaweb_api/core/security.py index 120e883..08a9e8c 100644 --- a/src/linguaweb_api/core/security.py +++ b/src/linguaweb_api/core/security.py @@ -1,4 +1,5 @@ """Security module for the CTK API.""" + import fastapi from fastapi import security, status diff --git a/src/linguaweb_api/main.py b/src/linguaweb_api/main.py index f065264..9bbe82d 100644 --- a/src/linguaweb_api/main.py +++ b/src/linguaweb_api/main.py @@ -1,4 +1,5 @@ """Entrypoint for the API.""" + import logging import fastapi diff --git a/src/linguaweb_api/microservices/s3.py b/src/linguaweb_api/microservices/s3.py index 4a16f50..09bbb13 100644 --- a/src/linguaweb_api/microservices/s3.py +++ b/src/linguaweb_api/microservices/s3.py @@ -1,4 +1,5 @@ """Interactions with an S3/MinIO bucket.""" + import logging import boto3 diff --git a/src/linguaweb_api/microservices/sql.py b/src/linguaweb_api/microservices/sql.py index ba0379b..c394ee4 100644 --- a/src/linguaweb_api/microservices/sql.py +++ b/src/linguaweb_api/microservices/sql.py @@ -1,4 +1,5 @@ """A module for interacting with the SQL database.""" + import logging from collections import abc from typing import Any diff --git a/src/linguaweb_api/routers/admin/controller.py b/src/linguaweb_api/routers/admin/controller.py index e1d5cc9..42d7739 100644 --- a/src/linguaweb_api/routers/admin/controller.py +++ b/src/linguaweb_api/routers/admin/controller.py @@ -1,4 +1,5 @@ """Controller for the listening router.""" + import asyncio import logging import pathlib diff --git a/src/linguaweb_api/routers/admin/schemas.py b/src/linguaweb_api/routers/admin/schemas.py index f7be258..2a65941 100644 --- a/src/linguaweb_api/routers/admin/schemas.py +++ b/src/linguaweb_api/routers/admin/schemas.py @@ -1,4 +1,5 @@ """Schemas for the admin API.""" + import pydantic diff --git a/src/linguaweb_api/routers/admin/views.py b/src/linguaweb_api/routers/admin/views.py index 7855607..b4de4f8 100644 --- a/src/linguaweb_api/routers/admin/views.py +++ b/src/linguaweb_api/routers/admin/views.py @@ -1,4 +1,5 @@ """Admin views.""" + import logging import fastapi diff --git a/src/linguaweb_api/routers/health/controller.py b/src/linguaweb_api/routers/health/controller.py index 8a27242..f3f0c3c 100644 --- a/src/linguaweb_api/routers/health/controller.py +++ b/src/linguaweb_api/routers/health/controller.py @@ -1,4 +1,5 @@ """Controller to assess the health of the services.""" + import fastapi import requests from fastapi import status diff --git a/src/linguaweb_api/routers/health/views.py b/src/linguaweb_api/routers/health/views.py index 35e6e74..f5a17b4 100644 --- a/src/linguaweb_api/routers/health/views.py +++ b/src/linguaweb_api/routers/health/views.py @@ -1,4 +1,5 @@ """View definitions for the health router.""" + import logging import fastapi diff --git a/src/linguaweb_api/routers/speech/controller.py b/src/linguaweb_api/routers/speech/controller.py index 7dc3651..09982b6 100644 --- a/src/linguaweb_api/routers/speech/controller.py +++ b/src/linguaweb_api/routers/speech/controller.py @@ -1,4 +1,5 @@ """Speech router controller.""" + import logging import pathlib import tempfile diff --git a/src/linguaweb_api/routers/speech/views.py b/src/linguaweb_api/routers/speech/views.py index c74dac0..b137341 100644 --- a/src/linguaweb_api/routers/speech/views.py +++ b/src/linguaweb_api/routers/speech/views.py @@ -1,4 +1,5 @@ """View definitions for the speech router.""" + import logging import fastapi diff --git a/src/linguaweb_api/routers/words/controller.py b/src/linguaweb_api/routers/words/controller.py index 63ef528..64d9a7a 100644 --- a/src/linguaweb_api/routers/words/controller.py +++ b/src/linguaweb_api/routers/words/controller.py @@ -1,4 +1,5 @@ """Business logic for the text router.""" + import logging import fastapi diff --git a/src/linguaweb_api/routers/words/schemas.py b/src/linguaweb_api/routers/words/schemas.py index 5d17add..230d545 100644 --- a/src/linguaweb_api/routers/words/schemas.py +++ b/src/linguaweb_api/routers/words/schemas.py @@ -1,4 +1,5 @@ """Schemas for the Words router.""" + import pydantic diff --git a/src/linguaweb_api/routers/words/views.py b/src/linguaweb_api/routers/words/views.py index 4f00c2c..fd67002 100644 --- a/src/linguaweb_api/routers/words/views.py +++ b/src/linguaweb_api/routers/words/views.py @@ -1,4 +1,5 @@ """View definitions for the text router.""" + import logging import fastapi diff --git a/tests/endpoint/conftest.py b/tests/endpoint/conftest.py index 9da110d..198ce1e 100644 --- a/tests/endpoint/conftest.py +++ b/tests/endpoint/conftest.py @@ -1,4 +1,5 @@ """Fixtures and configurations for testing the endpoints of the CTK API.""" + import enum import pytest diff --git a/tests/endpoint/test_admin.py b/tests/endpoint/test_admin.py index 9094db2..78d1b40 100644 --- a/tests/endpoint/test_admin.py +++ b/tests/endpoint/test_admin.py @@ -1,4 +1,5 @@ """Tests for the admin endpoints.""" + import pathlib from collections.abc import Generator diff --git a/tests/endpoint/test_health.py b/tests/endpoint/test_health.py index 720fcf3..0ce96cb 100644 --- a/tests/endpoint/test_health.py +++ b/tests/endpoint/test_health.py @@ -1,4 +1,5 @@ """Tests for the health endpoints.""" + from fastapi import status, testclient from tests.endpoint import conftest diff --git a/tests/endpoint/test_speech.py b/tests/endpoint/test_speech.py index 456c333..df8a0dc 100644 --- a/tests/endpoint/test_speech.py +++ b/tests/endpoint/test_speech.py @@ -1,4 +1,5 @@ """Tests for the speech endpoints.""" + import array import tempfile import wave diff --git a/tests/endpoint/test_words.py b/tests/endpoint/test_words.py index d183efb..8e7d1a3 100644 --- a/tests/endpoint/test_words.py +++ b/tests/endpoint/test_words.py @@ -1,4 +1,5 @@ """Tests for the words endpoints.""" + import moto import pytest import pytest_mock diff --git a/tests/unit/test_core_models.py b/tests/unit/test_core_models.py index 410bd53..4540ff3 100644 --- a/tests/unit/test_core_models.py +++ b/tests/unit/test_core_models.py @@ -1,4 +1,5 @@ """Tests for the BaseTable settings of SQL tables.""" + import datetime import time diff --git a/tests/unit/test_middleware.py b/tests/unit/test_middleware.py index 23df156..965c889 100644 --- a/tests/unit/test_middleware.py +++ b/tests/unit/test_middleware.py @@ -1,4 +1,5 @@ """Unit tests for the middleware module.""" + import logging import fastapi diff --git a/tests/unit/test_s3.py b/tests/unit/test_s3.py index dcba602..3e86e88 100644 --- a/tests/unit/test_s3.py +++ b/tests/unit/test_s3.py @@ -1,4 +1,5 @@ """Unit tests for the S3 client.""" + import moto import pytest from botocore import errorfactory diff --git a/tests/unit/test_sql.py b/tests/unit/test_sql.py index cb2ac5b..48d1fab 100644 --- a/tests/unit/test_sql.py +++ b/tests/unit/test_sql.py @@ -1,4 +1,5 @@ """Tests for the SQL module.""" + from unittest import mock import pytest