diff --git a/backend/main.py b/backend/main.py index 9433f92f..17bd4ae9 100644 --- a/backend/main.py +++ b/backend/main.py @@ -41,6 +41,7 @@ app.add_middleware( allow_headers=["*"], ) +x = 1 @app.websocket("/ws/agents/{session_id}") async def websocket_session(websocket: WebSocket, session_id: str): diff --git a/linter/checks/vulture.py b/linter/checks/vulture.py index b29b489d..f300af3b 100644 --- a/linter/checks/vulture.py +++ b/linter/checks/vulture.py @@ -25,7 +25,10 @@ def run_vulture( vulture_bin = Path(found) whitelist = CONFIG_DIR / "vulture_whitelist.py" - cmd = [str(vulture_bin), "backend", "debug.py"] + targets = ["backend"] + if (root / "debug.py").exists(): + targets.append("debug.py") + cmd = [str(vulture_bin), *targets] if whitelist.exists(): cmd.append(str(whitelist)) cmd.extend([ diff --git a/linter/config/config.json b/linter/config/config.json index 6705831a..0614fda7 100644 --- a/linter/config/config.json +++ b/linter/config/config.json @@ -1,11 +1,11 @@ { "enabled": { - "max-file-lines": true, - "max-folder-items": true, - "no-nested-imports": true, + "max-file-lines": false, + "max-folder-items": false, + "no-nested-imports": false, "vulture": true, - "eslint": true, - "knip": true + "eslint": false, + "knip": false }, "rules": { "max-file-lines": 250,