From 3963642a4130cf55484b33c399e36f21a8cf0a45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:44:02 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.2.0](https://github.com/psf/black/compare/23.12.1...24.2.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66e87444..42945291 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - id: isort args: [--check, --diff, --profile, black, --line-length, "100"] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.2.0 hooks: - id: black args: [--line-length, "100"] From f06fd10f4525b3b176fe13e4bdd021492b1363b0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:46:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/auth_utils.py | 1 + src/cache.py | 1 + src/database.py | 1 + src/gsp.py | 1 + src/main.py | 1 + src/national.py | 1 + src/pydantic_models.py | 1 + src/redoc_theme.py | 1 + src/status.py | 1 + src/system.py | 1 + src/tests/conftest.py | 1 + src/tests/test_gsp.py | 1 + src/tests/test_main.py | 1 + src/tests/test_merged_routes.py | 1 + src/tests/test_national.py | 1 + src/tests/test_status.py | 1 + src/tests/test_utils.py | 1 + src/utils.py | 1 + 18 files changed, 18 insertions(+) diff --git a/src/auth_utils.py b/src/auth_utils.py index 9c0d03bf..1ef020b2 100644 --- a/src/auth_utils.py +++ b/src/auth_utils.py @@ -1,4 +1,5 @@ """ Authentical objects """ + import os import structlog diff --git a/src/cache.py b/src/cache.py index c0b90ee4..a0190963 100644 --- a/src/cache.py +++ b/src/cache.py @@ -1,4 +1,5 @@ """ Caching utils for api""" + import json import os import time diff --git a/src/database.py b/src/database.py index 8003cd26..96d5b8ee 100644 --- a/src/database.py +++ b/src/database.py @@ -1,4 +1,5 @@ """ Functions to read from the database and format """ + import os from datetime import datetime, timedelta, timezone from typing import List, Optional, Union diff --git a/src/gsp.py b/src/gsp.py index 4b8a4bcf..734da85f 100644 --- a/src/gsp.py +++ b/src/gsp.py @@ -1,4 +1,5 @@ """Get GSP boundary data from eso """ + import os from typing import List, Optional, Union diff --git a/src/main.py b/src/main.py index 08ab176b..5cf6525e 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,5 @@ """ Main FastAPI app """ + import os import time from datetime import timedelta diff --git a/src/national.py b/src/national.py index 92996de3..f1aaf93e 100644 --- a/src/national.py +++ b/src/national.py @@ -1,4 +1,5 @@ """National API routes""" + import os from typing import List, Optional, Union diff --git a/src/pydantic_models.py b/src/pydantic_models.py index 7f812f8e..7e294501 100644 --- a/src/pydantic_models.py +++ b/src/pydantic_models.py @@ -1,4 +1,5 @@ """ pydantic models for API""" + import logging from datetime import datetime from typing import Dict, List, Optional diff --git a/src/redoc_theme.py b/src/redoc_theme.py index f2b3be20..afef2c5c 100644 --- a/src/redoc_theme.py +++ b/src/redoc_theme.py @@ -1,4 +1,5 @@ """ Redoc theme functions """ + from starlette.responses import HTMLResponse diff --git a/src/status.py b/src/status.py index 548ccbfa..867feddf 100644 --- a/src/status.py +++ b/src/status.py @@ -1,4 +1,5 @@ """Get Status from database """ + import os from datetime import datetime, timedelta, timezone diff --git a/src/system.py b/src/system.py index 4e6da2af..21471a0a 100644 --- a/src/system.py +++ b/src/system.py @@ -1,4 +1,5 @@ """Get GSP boundary data from eso """ + import json from typing import List, Optional diff --git a/src/tests/conftest.py b/src/tests/conftest.py index ca11996f..544bb65e 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -1,4 +1,5 @@ """ Pytest fixitures for tests """ + import os import pytest diff --git a/src/tests/test_gsp.py b/src/tests/test_gsp.py index 9a6b4111..c914c063 100644 --- a/src/tests/test_gsp.py +++ b/src/tests/test_gsp.py @@ -1,4 +1,5 @@ """ Test for main app """ + from datetime import datetime, timezone from freezegun import freeze_time diff --git a/src/tests/test_main.py b/src/tests/test_main.py index bdcec5af..1e10bc69 100644 --- a/src/tests/test_main.py +++ b/src/tests/test_main.py @@ -1,4 +1,5 @@ """ Test for main app """ + from main import version diff --git a/src/tests/test_merged_routes.py b/src/tests/test_merged_routes.py index 583b55a2..8210a7c0 100644 --- a/src/tests/test_merged_routes.py +++ b/src/tests/test_merged_routes.py @@ -1,4 +1,5 @@ """ Test for main app """ + from datetime import datetime from freezegun import freeze_time diff --git a/src/tests/test_national.py b/src/tests/test_national.py index 8c42febe..f3c9bedd 100644 --- a/src/tests/test_national.py +++ b/src/tests/test_national.py @@ -1,4 +1,5 @@ """ Test for main app """ + from datetime import datetime, timezone import numpy as np diff --git a/src/tests/test_status.py b/src/tests/test_status.py index f79ebf6a..87e0823b 100644 --- a/src/tests/test_status.py +++ b/src/tests/test_status.py @@ -1,4 +1,5 @@ """ Test for main app """ + from datetime import datetime, timedelta, timezone from fastapi.testclient import TestClient diff --git a/src/tests/test_utils.py b/src/tests/test_utils.py index 82ae829c..d4e01c27 100644 --- a/src/tests/test_utils.py +++ b/src/tests/test_utils.py @@ -1,4 +1,5 @@ """ Utils functions for test """ + import os from datetime import datetime, timezone diff --git a/src/utils.py b/src/utils.py index 61b421cb..ef589b09 100644 --- a/src/utils.py +++ b/src/utils.py @@ -1,4 +1,5 @@ """ Utils functions for main.py """ + import os from datetime import datetime, timedelta from typing import List, Optional, Union