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
This commit is contained in:
Jarian 2026-07-05 04:43:27 +00:00
parent 2d744af121
commit 759c639963
4 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -8,7 +8,7 @@ export default defineConfig({
port: 5173,
proxy: {
"/api": {
target: "http://backend:8000",
target: "http://localhost:8010",
changeOrigin: true,
},
},

View File

@ -1,4 +1,3 @@
import asyncio
import logging
import time
from urllib.parse import urljoin

View File

@ -1,4 +1,3 @@
import asyncio
import logging
from playwright.async_api import async_playwright