-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 751 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 751 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
29
30
# Variables
PYTHON = ./.venv/bin/python3
PIP = $(PYTHON) -m pip
PYTEST = $(PYTHON) -m pytest
.PHONY: install test coverage run clean
# 1. Install dependencies and the app in editable mode
install:
python3 -m venv .venv
$(PIP) install --upgrade pip setuptools wheel
$(PIP) install -e '.[dev]'
# 2. Run Unit Tests
test:
$(PYTEST) tests/
# 3. Run Coverage Report (Terminal + XML for CI)
coverage:
$(PYTEST) --cov=fir tests/ --cov-report=term-missing --cov-report=xml
# 4. Run the program directly using the 'fir' command logic
# Usage: make run target=main.dart
run:
$(PYTHON) -m fir.main $(target) --html
# 5. Clean up temporary files
clean:
rm -rf .pytest_cache .coverage coverage.xml
find . -type d -name "__pycache__" -exec rm -rf {} +