Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 28, 2024
Merged
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repos:

# Lint: Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
rev: v0.41.0
hooks:
- id: markdownlint
args: ["--fix"]
Expand Down Expand Up @@ -105,7 +105,7 @@ repos:
args: ["--profile", "black"]

- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
rev: v1.6.27.13
rev: v1.7.0.14
hooks:
- id: actionlint

Expand All @@ -131,7 +131,7 @@ repos:
additional_dependencies: ["pytest", "types-requests"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.4.5
hooks:
- id: ruff
files: ^(scripts|tests|custom_components)/.+\.py$
Expand Down
7 changes: 4 additions & 3 deletions src/middleware.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import base64
import logging
import uuid

from fastapi import Request
import base64
from starlette.datastructures import MutableHeaders
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.responses import StreamingResponse
from starlette.types import Send
from starlette.datastructures import MutableHeaders
import uuid

import state

Expand Down
7 changes: 4 additions & 3 deletions src/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
#
# Created: 2024-04-15 by [email protected]

from typing import List, Optional, Dict, Any
import httpx
import logging
from typing import Any, Dict, List, Optional

import httpx

from bgsexception import BgsException, BgsNotFoundException

Expand Down Expand Up @@ -133,4 +134,4 @@ def shttprequest(host: str, port: int, service: str, method: str,
except Exception as e:
msg = f"Unexpected error for {url}: {e}"
logger.error(msg)
raise BgsException(msg)
raise BgsException(msg)
Loading