From 759c639963f7d78697a163af26349ac1f4ac78c8 Mon Sep 17 00:00:00 2001 From: Jarian Date: Sun, 5 Jul 2026 04:43:27 +0000 Subject: [PATCH] fix: Vite proxy port, remove unused asyncio, exclude node_modules from bandit - Fix vite.config.ts proxy target to localhost:8010 (matches docker-compose) - Remove unused asyncio import from main.py and discovery.py (ruff F401) - Add node_modules to bandit exclude in CI workflow Closes #13 --- .gitea/workflows/ci.yml | 2 +- frontend/vite.config.ts | 2 +- src/main.py | 1 - src/modules/discovery.py | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4778f48..9b5daae 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: run: | if [[ -f pyproject.toml ]]; then pip3 install bandit - bandit -r . --severity-level high --confidence-level high --exclude tests/,test_* + bandit -r . --severity-level high --confidence-level high --exclude tests/,test_*,node_modules else echo "No Python project detected, skipping bandit" fi diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 7e2ede7..d61a8ff 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ port: 5173, proxy: { "/api": { - target: "http://backend:8000", + target: "http://localhost:8010", changeOrigin: true, }, }, diff --git a/src/main.py b/src/main.py index a9b7b13..a96953b 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,3 @@ -import asyncio import logging import time from urllib.parse import urljoin diff --git a/src/modules/discovery.py b/src/modules/discovery.py index 6fd5282..e29fef0 100644 --- a/src/modules/discovery.py +++ b/src/modules/discovery.py @@ -1,4 +1,3 @@ -import asyncio import logging from playwright.async_api import async_playwright