chore: remove unused websockets.exceptions import, add .gitignore, untrack __pycache__

- Remove unused 'import websockets.exceptions' from main.py (no reference
  to websockets.exceptions.* anywhere in the file; all WS handlers use
  broad Exception catches)
- Add .gitignore with __pycache__/, *.pyc, .venv/, and other standard
  Python excludes so bytecode no longer shows as modified in git status
- Untrack all pre-existing __pycache__/*.pyc files via git rm --cached
This commit is contained in:
Brian Krabach
2026-04-01 18:30:10 -07:00
parent e738701cdd
commit dae5cea16b
54 changed files with 30 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
# Python bytecode
__pycache__/
*.pyc
*.pyo
*.pyd
# Virtual environment
.venv/
venv/
env/
# Distribution / packaging
dist/
build/
*.egg-info/
# Test/coverage artifacts
.coverage
.pytest_cache/
htmlcov/
# OS artifacts
.DS_Store
Thumbs.db
# IDE
.idea/
.vscode/
*.swp
*.swo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1
View File
@@ -24,7 +24,6 @@ from typing import Literal
import httpx import httpx
import websockets import websockets
import websockets.exceptions
from websockets.typing import Subprotocol from websockets.typing import Subprotocol
from fastapi import FastAPI, Form, HTTPException, Request, WebSocket from fastapi import FastAPI, Form, HTTPException, Request, WebSocket
Binary file not shown.
Binary file not shown.
Binary file not shown.