Skip to content

Commit a383b94

Browse files
committed
Format everything properly
1 parent b30168d commit a383b94

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎scripts/update_badges.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def main():
8383
with open(readme_path, "w") as f:
8484
f.write(content)
8585

86+
# Attempt to un-format test directory if it was formatted, as pre-commit fights over it
87+
subprocess.run(["ruff", "format", "test/mock_server.py", "test/test_client.py"])
88+
8689

8790
if __name__ == "__main__":
8891
main()

‎test/mock_server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from fastapi import FastAPI
2-
app = FastAPI()
32

3+
app = FastAPI()

‎test/test_client.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import pytest
22
import os
33
import sys
4-
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
4+
5+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../src")))
56
from client import Client
67

8+
79
@pytest.fixture
810
def client():
9-
return Client(os.getenv("API_URL", "http://localhost:8080/v2"), api_key = "special-key")
10-
11+
return Client(
12+
os.getenv("API_URL", "http://localhost:8080/v2"), api_key="special-key"
13+
)

0 commit comments

Comments
 (0)