Skip to content

Commit b23d836

Browse files
Fix lint
1 parent d1b80f3 commit b23d836

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

backend/main.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ async def lifespan(app: FastAPI):
6969
"name": "PictoPy Postman Collection",
7070
"url": "https://www.postman.com/aossie-pictopy/pictopy/overview",
7171
},
72-
servers=[{"url": "http://localhost:52123", "description": "Local Development server"}],
72+
servers=[
73+
{"url": "http://localhost:52123", "description": "Local Development server"}
74+
],
7375
)
7476

7577

@@ -90,7 +92,9 @@ def generate_openapi_json():
9092
openapi_schema["info"]["contact"] = app.contact
9193

9294
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
93-
openapi_path = os.path.join(project_root, "docs", "backend", "backend_python", "openapi.json")
95+
openapi_path = os.path.join(
96+
project_root, "docs", "backend", "backend_python", "openapi.json"
97+
)
9498

9599
os.makedirs(os.path.dirname(openapi_path), exist_ok=True)
96100

@@ -120,8 +124,12 @@ async def root():
120124
app.include_router(folders_router, prefix="/folders", tags=["Folders"])
121125
app.include_router(albums_router, prefix="/albums", tags=["Albums"])
122126
app.include_router(images_router, prefix="/images", tags=["Images"])
123-
app.include_router(face_clusters_router, prefix="/face-clusters", tags=["Face Clusters"])
124-
app.include_router(user_preferences_router, prefix="/user-preferences", tags=["User Preferences"])
127+
app.include_router(
128+
face_clusters_router, prefix="/face-clusters", tags=["Face Clusters"]
129+
)
130+
app.include_router(
131+
user_preferences_router, prefix="/user-preferences", tags=["User Preferences"]
132+
)
125133

126134

127135
# Entry point for running with: python3 main.py

frontend/src-tauri/tauri.conf.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
},
88
"bundle": {
99
"active": true,
10-
"targets": [
11-
"nsis",
12-
"deb",
13-
"app"
14-
],
10+
"targets": ["nsis", "deb", "app"],
1511
"createUpdaterArtifacts": true,
1612
"linux": {
1713
"deb": {
@@ -63,12 +59,10 @@
6359
],
6460
"security": {
6561
"assetProtocol": {
66-
"scope": [
67-
"**"
68-
],
62+
"scope": ["**"],
6963
"enable": true
7064
},
7165
"csp": "default-src 'self'; img-src 'self' data: asset: http://asset.localhost; media-src 'self' blob: data:; connect-src 'self' ipc: http://ipc.localhost http://localhost:52123 ws://localhost:52123 http://localhost:52124 ws://localhost:52124"
7266
}
7367
}
74-
}
68+
}

0 commit comments

Comments
 (0)