forked from komalharshita/DevPath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 721 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 721 Bytes
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
.PHONY: help venv install run test lint
# Self-Documenting Help (Default target)
help:
@echo "Available commands:"
@echo " make venv Create a local python virtual environment"
@echo " make install Install all dependencies from requirements.txt"
@echo " make run Start the development server"
@echo " make test Run the full test suite"
@echo " make lint Run flake8 code style checks"
venv:
python -m venv venv
@echo "Virtual environment created! Activate it using:"
@echo " Windows: venv\\Scripts\\activate"
@echo " Mac/Linux: source venv/bin/activate"
install:
pip install -r requirements.txt
run:
python app.py
test:
pytest tests/ -v
lint:
flake8 . --max-line-length=120