Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 10 additions & 3 deletions .github/workflows/fastapi-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ jobs:
- name: Vitest with coverage
run: npm test
- name: Build (bundle size budget)
run: npx vite build
run: npm run build
- name: Check production HTTP caching
run: |
docker run -d --name f1-nginx-check --add-host backend:127.0.0.1 -p 8080:80 -v "$PWD/dist:/usr/share/nginx/html:ro" -v "$PWD/nginx.conf:/etc/nginx/conf.d/default.conf:ro" nginx:1.27-alpine
for attempt in {1..20}; do curl --silent --fail http://127.0.0.1:8080/index.html >/dev/null && break; sleep 1; done
npm run check:hosting
- name: Stop caching check container
if: always()
run: docker rm -f f1-nginx-check || true
- name: Production-deps audit
run: npm run audit
continue-on-error: true # dev-dep advisories only; see PARITY_REPORT.md
run: npm audit --omit=dev
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ __pycache__/
# External projects
/ollama-web/
/localchat/
/fastapi_react/
/fastapi_react/node_modules/
/fastapi_react/frontend/dist/
/fastapi_react/frontend/coverage/
/fastapi_react/frontend/.vite/
/fastapi_react/backend/.coverage
/fastapi_react/backend/.pytest_cache/
/fastapi_react/backend/.mypy_cache/
/fastapi_react/backend/.ruff_cache/
/fastapi_react/backend/__pycache__/
/fastapi_react/.runtime/
/.devcontainer

# FastF1 cache
Expand Down Expand Up @@ -145,3 +154,4 @@ etc/jupyter/nbconfig/notebook.d/pydeck.json
.commandcode/*
docs/XGBOOST_WINDOWS_BLOCKER.md
.pytest*
.test-tmp-parity/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:

- id: mypy-fastapi-backend
name: mypy --strict (backend)
entry: bash -c 'cd fastapi_react/backend && python -m mypy app'
entry: bash -c 'cd fastapi_react/backend && python -m mypy --explicit-package-bases app'
language: system
files: ^fastapi_react/backend/.*\.py$
pass_filenames: false
Expand Down
Loading
Loading