Skip to content

Commit c762678

Browse files
committed
Apply pre-commit
1 parent 23e3786 commit c762678

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ known_first_party = ["stac_auth_proxy"]
2929
profile = "black"
3030

3131
[tool.ruff]
32-
ignore = ["E501", "D203", "D212"]
32+
ignore = ["E501", "D205", "D212"]
3333
select = ["D", "E", "F"]
3434

3535
[build-system]

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Pytest fixtures."""
22

33
import threading
4-
from typing import Optional
54

65
import pytest
76
import uvicorn

tests/test_openapi.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import pytest
1+
"""Tests for OpenAPI spec handling."""
2+
23
from fastapi import FastAPI
34
from fastapi.testclient import TestClient
45

56
from stac_auth_proxy import Settings, create_app
67

78

89
def test_no_edit_openapi_spec(source_api_server):
9-
"""
10-
When no OpenAPI spec endpoint is set, the proxied OpenAPI spec is unaltered.
11-
"""
10+
"""When no OpenAPI spec endpoint is set, the proxied OpenAPI spec is unaltered."""
1211
app = create_app(
1312
Settings(
1413
upstream_url=source_api_server,
@@ -27,9 +26,7 @@ def test_no_edit_openapi_spec(source_api_server):
2726

2827

2928
def test_oidc_in_openapi_spec(source_api: FastAPI, source_api_server: str):
30-
"""
31-
When OpenAPI spec endpoint is set, the proxied OpenAPI spec is augmented with oidc details.
32-
"""
29+
"""When OpenAPI spec endpoint is set, the proxied OpenAPI spec is augmented with oidc details."""
3330
app = create_app(
3431
Settings(
3532
upstream_url=source_api_server,

0 commit comments

Comments
 (0)