Spaces:
Sleeping
Sleeping
Download scripts/ci_gate.sh from derrickliu/stock_analysis: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/scripts/ci_gate.sh
- Command line
-
hf download hf://spaces/derrickliu/stock_analysis/scripts/ci_gate.sh
-
curl -L -o ci_gate.sh https://huggingface.co/spaces/derrickliu/stock_analysis/resolve/main/scripts/ci_gate.sh
683 Bytes
| set -euo pipefail | |
| echo "==> backend-gate: Python syntax check" | |
| python -m py_compile main.py src/config.py src/auth.py src/analyzer.py src/notification.py | |
| python -m py_compile src/storage.py src/scheduler.py src/search_service.py | |
| python -m py_compile src/market_analyzer.py src/stock_analyzer.py | |
| python -m py_compile data_provider/*.py | |
| echo "==> backend-gate: flake8 critical checks" | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| echo "==> backend-gate: local deterministic checks" | |
| ./test.sh code | |
| ./test.sh yfinance | |
| echo "==> backend-gate: offline test suite" | |
| python -m pytest -m "not network" | |
| echo "==> backend-gate: all checks passed" | |