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:
parent
2d744af121
commit
759c639963
@ -117,7 +117,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [[ -f pyproject.toml ]]; then
|
if [[ -f pyproject.toml ]]; then
|
||||||
pip3 install bandit
|
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
|
else
|
||||||
echo "No Python project detected, skipping bandit"
|
echo "No Python project detected, skipping bandit"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export default defineConfig({
|
|||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://backend:8000",
|
target: "http://localhost:8010",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import asyncio
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import asyncio
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from playwright.async_api import async_playwright
|
from playwright.async_api import async_playwright
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user