-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 907 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 907 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
31
32
33
34
35
36
# standard is 'python3', but you can replace with:
# make install PYTHON=python3.14
PYTHON ?= python3
VENV = .venv
PIP = $(VENV)/bin/pip
.DEFAULT_GOAL := help
help:
@echo "Available commands:"
@echo " make install - Create virtual environment and install dependencies"
@echo " make lint - Run Flake8 linter"
@echo " make test - Run Pytest suite"
@echo " make check - Run linter AND tests (Fail-Fast)"
@echo " make clean - Remove virtual environment"
# Install
install:
$(PYTHON) -m venv $(VENV)
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
@echo "Installation abgeschlossen."
@echo "Aktiviere das venv mit: 'source $(VENV)/bin/activate' (oder fish: 'source .venv/bin/activate.fish')"
check: lint test
lint:
$(VENV)/bin/flake8 .
test:
$(VENV)/bin/pytest -c test/pytest.ini
clean:
rm -rf $(VENV)
.PHONY: install test lint check clean