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

[pre-commit.ci] pre-commit autoupdate #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
fail_fast: false
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.14.0
hooks:
- id: mypy
args:
Expand All @@ -15,7 +15,7 @@ repos:
- types-pyyaml
- types-requests
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args:
Expand All @@ -28,7 +28,7 @@ repos:
- --indent=2
- --no-sort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
Expand Down
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
Loading