Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#332)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](psf/black@23.12.1...24.4.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 14, 2024
1 parent 8331c88 commit 85b524b
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
Expand All @@ -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.4.2
hooks:
- id: black
args: [--line-length, "100"]
Expand Down
1 change: 1 addition & 0 deletions src/auth_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Authentical objects """

import os

import structlog
Expand Down
1 change: 1 addition & 0 deletions src/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Caching utils for api"""

import json
import os
import time
Expand Down
1 change: 1 addition & 0 deletions src/database.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/gsp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get GSP boundary data from eso """

import os
from typing import List, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Main FastAPI app """

import os
import time
from datetime import timedelta
Expand Down
1 change: 1 addition & 0 deletions src/national.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""National API routes"""

import os
from typing import List, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions src/pydantic_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" pydantic models for API"""

import logging
import os
from datetime import datetime
Expand Down
1 change: 1 addition & 0 deletions src/redoc_theme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Redoc theme functions """

from starlette.responses import HTMLResponse


Expand Down
1 change: 1 addition & 0 deletions src/status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get Status from database """

import os
from datetime import datetime, timedelta, timezone

Expand Down
1 change: 1 addition & 0 deletions src/system.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get GSP boundary data from eso """

import json
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions src/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Pytest fixitures for tests """

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_gsp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test for main app """

from datetime import datetime, timezone

from freezegun import freeze_time
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test for main app """

from main import version


Expand Down
1 change: 1 addition & 0 deletions src/tests/test_merged_routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test for main app """

from datetime import datetime

from freezegun import freeze_time
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_national.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test for main app """

from datetime import datetime, timezone

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test for main app """

from datetime import datetime, timedelta, timezone

from fastapi.testclient import TestClient
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Utils functions for test """

import os
from datetime import datetime, timezone

Expand Down
1 change: 1 addition & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Utils functions for main.py """

import os
from datetime import datetime, timedelta
from typing import List, Optional, Union
Expand Down

0 comments on commit 85b524b

Please sign in to comment.