Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent 35191c9 commit f04491e
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/aws/lambda.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Creates the handler for AWS Lambda.""" # noqa: INP001

import mangum

from linguaweb_api import main
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/core/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Settings for the API."""

import enum
import functools
import logging
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/core/middleware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Middleware for the FastAPI application."""

import logging
import uuid
from collections import abc
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/core/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Basic settings for all SQL tables."""

import datetime
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/core/security.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Security module for the CTK API."""

import fastapi
from fastapi import security, status

Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Entrypoint for the API."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/microservices/s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Interactions with an S3/MinIO bucket."""

import logging

import boto3
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/microservices/sql.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A module for interacting with the SQL database."""

import logging
from collections import abc
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/admin/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Controller for the listening router."""

import asyncio
import logging
import pathlib
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/admin/schemas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Schemas for the admin API."""

import pydantic


Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/admin/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Admin views."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/health/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Controller to assess the health of the services."""

import fastapi
import requests
from fastapi import status
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/health/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""View definitions for the health router."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/speech/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Speech router controller."""

import logging
import pathlib
import tempfile
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/speech/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""View definitions for the speech router."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/words/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Business logic for the text router."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/words/schemas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Schemas for the Words router."""

import pydantic


Expand Down
1 change: 1 addition & 0 deletions src/linguaweb_api/routers/words/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""View definitions for the text router."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions tests/endpoint/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures and configurations for testing the endpoints of the CTK API."""

import enum

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/endpoint/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the admin endpoints."""

import pathlib
from collections.abc import Generator

Expand Down
1 change: 1 addition & 0 deletions tests/endpoint/test_health.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the health endpoints."""

from fastapi import status, testclient

from tests.endpoint import conftest
Expand Down
1 change: 1 addition & 0 deletions tests/endpoint/test_speech.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the speech endpoints."""

import array
import tempfile
import wave
Expand Down
1 change: 1 addition & 0 deletions tests/endpoint/test_words.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the words endpoints."""

import moto
import pytest
import pytest_mock
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_core_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the BaseTable settings of SQL tables."""

import datetime
import time

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_middleware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for the middleware module."""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for the S3 client."""

import moto
import pytest
from botocore import errorfactory
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_sql.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the SQL module."""

from unittest import mock

import pytest
Expand Down

0 comments on commit f04491e

Please sign in to comment.