Skip to content

Commit

Permalink
update black
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyrno42 committed Dec 4, 2024
1 parent 530b7f1 commit aae8e84
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
9 changes: 6 additions & 3 deletions esteid-proxy/esteid-proxy.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from base64 import b64decode, b64encode
import json
import os
import traceback
from base64 import b64decode, b64encode
from typing import Any, Dict
from urllib.parse import parse_qs, unquote_plus, quote_plus
from urllib.parse import parse_qs, quote_plus, unquote_plus

import requests
from requests import RequestException


ALLOWED_URLS = os.environ["ALLOWED_URLS"].split(",")
ANY_ALLOWED = "*" in ALLOWED_URLS

Expand Down Expand Up @@ -86,7 +87,9 @@ def handle_request(headers, data):
return {"statusCode": 529, "body": "internal server error"}


from fastapi import FastAPI, Request as FastAPIRequest, Response as FastAPIResponse
from fastapi import FastAPI
from fastapi import Request as FastAPIRequest
from fastapi import Response as FastAPIResponse


app = FastAPI()
Expand Down
2 changes: 1 addition & 1 deletion esteid/signing/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
from time import time
from typing import Dict, List, Type

from esteid.util import get_request_session_method
from esteid_certificates import get_certificate

import pyasice
from pyasice import Container, XmlSignature

from esteid import settings
from esteid.exceptions import EsteidError, SigningSessionDoesNotExist, SigningSessionExists
from esteid.util import get_request_session_method

from .types import DataFile, InterimSessionData

Expand Down
57 changes: 27 additions & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proxy_session.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from base64 import b64decode, b64encode
import json
from base64 import b64decode, b64encode

import requests

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pytz = ">=2018"

djangorestframework = ">=3.9"
django-sslserver = "*"
black = "==23.1.0"
black = "==24.3.0"
coverage = ">=4.5.4"
coveralls = ">=1.8.2"
flake8 = "*"
Expand Down

0 comments on commit aae8e84

Please sign in to comment.