Spaces:
Build error
Build error
File size: 665 Bytes
03f7aa7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Install dependencies
install:
pip install --upgrade pip && \
pip install -r requirements.txt
# Run basic tests to ensure the app works
test:
python -m pytest -vv tests # Update this if you create tests later
# Debug any test failures
debug:
python -m pytest -vv --pdb
# Run a specific test
one-test:
python -m pytest -vv tests/test_app.py::test_specific_function
# Format the code with Black
format:
black *.py
# Lint the code with pylint
lint:
pylint --disable=R,C *.py
# Deploy the app to Hugging Face Spaces
deploy:
huggingface-cli repo upload ./ -r spaces/username/my-ml-app --branch main
# Run all tasks
all: install lint format test deploy
|