Spaces:
Sleeping
Sleeping
Download scripts/validate-submission.sh from SamanPandey/meta: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/SamanPandey/meta/resolve/main/scripts/validate-submission.sh
- Command line
-
hf download hf://spaces/SamanPandey/meta/scripts/validate-submission.sh
-
curl -L -o validate-submission.sh https://huggingface.co/spaces/SamanPandey/meta/resolve/main/scripts/validate-submission.sh
654 Bytes
| # scripts/validate-submission.sh | |
| # Validates that the core files exist and are syntactically correct. | |
| echo "π Validating submission..." | |
| REQUIRED_FILES=("models.py" "server/app.py" "server/environment.py" "gym_env/precision_irrigation.py") | |
| for file in "${REQUIRED_FILES[@]}"; do | |
| if [ ! -f "$file" ]; then | |
| echo "β Missing file: $file" | |
| exit 1 | |
| fi | |
| done | |
| echo "β All required files found." | |
| # Run syntax check | |
| echo "π Checking syntax..." | |
| python -m compileall -q . | |
| if [ $? -eq 0 ]; then | |
| echo "β Syntax check passed." | |
| else | |
| echo "β Syntax errors found." | |
| exit 1 | |
| fi | |
| echo "π Validation complete." | |