diff --git a/app/auth/auth_interface.py b/app/auth/auth_interface.py index 6c6785a..80e58a3 100644 --- a/app/auth/auth_interface.py +++ b/app/auth/auth_interface.py @@ -1,4 +1,5 @@ """Auth interface module.""" + from abc import ABC from abc import abstractmethod from typing import Dict diff --git a/app/auth/auth_jwks.py b/app/auth/auth_jwks.py index 00a0506..0a15f60 100644 --- a/app/auth/auth_jwks.py +++ b/app/auth/auth_jwks.py @@ -1,4 +1,5 @@ """Auth JWKS module.""" + import typing from dataclasses import dataclass from dataclasses import field diff --git a/app/auth/oauth2.py b/app/auth/oauth2.py index 690122c..19f2f6c 100644 --- a/app/auth/oauth2.py +++ b/app/auth/oauth2.py @@ -1,4 +1,5 @@ """OAuth2 provider module.""" + import re from abc import ABC from abc import abstractmethod diff --git a/app/config/app.py b/app/config/app.py index 7c2173f..7061705 100644 --- a/app/config/app.py +++ b/app/config/app.py @@ -1,4 +1,5 @@ """App configuration module.""" + from functools import lru_cache from typing import Optional diff --git a/app/config/auth.py b/app/config/auth.py index 558b4db..93739cb 100644 --- a/app/config/auth.py +++ b/app/config/auth.py @@ -1,4 +1,5 @@ """Authn and Authz module.""" + from app.auth.auth_jwks import JWKSAuthentication from app.auth.auth_jwks import JWKSConfig from app.auth.oauth2 import Oauth2Provider diff --git a/app/config/logging.py b/app/config/logging.py index 12475a1..06066af 100644 --- a/app/config/logging.py +++ b/app/config/logging.py @@ -1,4 +1,5 @@ """Logging module.""" + import logging import sys from pathlib import Path diff --git a/app/main.py b/app/main.py index a1c7200..9d102b4 100644 --- a/app/main.py +++ b/app/main.py @@ -1,4 +1,5 @@ """Main module.""" + import os import sys from pathlib import Path diff --git a/app/middleware/oauth2.py b/app/middleware/oauth2.py index 5add409..e4518e0 100644 --- a/app/middleware/oauth2.py +++ b/app/middleware/oauth2.py @@ -1,4 +1,5 @@ """OAuth2 middleware module.""" + import asyncio import re from typing import List diff --git a/app/middleware/pygeoapi.py b/app/middleware/pygeoapi.py index 9d0e25b..3802336 100644 --- a/app/middleware/pygeoapi.py +++ b/app/middleware/pygeoapi.py @@ -1,4 +1,5 @@ """Openapi middleware module.""" + from typing import Any from typing import Dict from typing import List diff --git a/app/pygeoapi/openapi.py b/app/pygeoapi/openapi.py index 1c92793..70223a3 100644 --- a/app/pygeoapi/openapi.py +++ b/app/pygeoapi/openapi.py @@ -1,4 +1,5 @@ """Override vanilla openapi module.""" + from typing import List from app.config.app import configuration as cfg diff --git a/app/schemas/logging.py b/app/schemas/logging.py index e3dbe4e..e7da410 100644 --- a/app/schemas/logging.py +++ b/app/schemas/logging.py @@ -1,4 +1,5 @@ """Logging module.""" + from pathlib import Path from pydantic import BaseModel diff --git a/app/utils/app_exceptions.py b/app/utils/app_exceptions.py index 889458f..068fd68 100644 --- a/app/utils/app_exceptions.py +++ b/app/utils/app_exceptions.py @@ -1,4 +1,5 @@ """App exceptions module.""" + from fastapi import Request from starlette.responses import JSONResponse diff --git a/app/utils/get_list_of_app_exceptions_for_frontend.py b/app/utils/get_list_of_app_exceptions_for_frontend.py index ed59836..e93d472 100644 --- a/app/utils/get_list_of_app_exceptions_for_frontend.py +++ b/app/utils/get_list_of_app_exceptions_for_frontend.py @@ -1,4 +1,5 @@ """App exceptions for frontend module.""" + from app.config.logging import create_logger from app.utils.app_exceptions import AppException diff --git a/app/utils/request_exceptions.py b/app/utils/request_exceptions.py index 7e48664..b581856 100644 --- a/app/utils/request_exceptions.py +++ b/app/utils/request_exceptions.py @@ -1,4 +1,5 @@ """Request exceptions module.""" + from fastapi.encoders import jsonable_encoder from fastapi.exceptions import RequestValidationError from starlette.exceptions import HTTPException diff --git a/app/utils/service_result.py b/app/utils/service_result.py index d284833..3bbca6d 100644 --- a/app/utils/service_result.py +++ b/app/utils/service_result.py @@ -1,4 +1,5 @@ """Service result module.""" + import inspect from app.config.logging import create_logger diff --git a/cli.py b/cli.py index c416118..8244017 100644 --- a/cli.py +++ b/cli.py @@ -1,4 +1,5 @@ """Command-line interface.""" + import os from pathlib import Path diff --git a/noxfile.py b/noxfile.py index 28a11ca..57712d9 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,4 +1,5 @@ """Nox sessions.""" + import os import shutil import sys diff --git a/scripts/docker/build.py b/scripts/docker/build.py index 83499d8..cb15e30 100644 --- a/scripts/docker/build.py +++ b/scripts/docker/build.py @@ -1,4 +1,5 @@ """Build the Dockerfile.""" + import logging import shlex import shutil diff --git a/tests/conftest.py b/tests/conftest.py index dc038d5..6ed51ee 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Configuration for tests.""" + import os import sys from unittest import mock diff --git a/tests/test_cli.py b/tests/test_cli.py index 753a7af..b4d6e55 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,4 +1,5 @@ """Test cases for the cli module.""" + from cli import app from typer.testing import CliRunner diff --git a/tests/test_openapi_contract.py b/tests/test_openapi_contract.py index 3ad972c..8cd2088 100644 --- a/tests/test_openapi_contract.py +++ b/tests/test_openapi_contract.py @@ -1,4 +1,5 @@ """OpenAPI contract tests module.""" + import schemathesis