-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
Makefile
37 lines (28 loc) · 720 Bytes
/
Makefile
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
37
# Set PYTHON variable according to OS
ifeq ($(OS),Windows_NT)
PYTHON=python
else
PYTHON=python3
endif
pytest:
$(PYTHON) -m pytest tests
pytest-slow:
$(PYTHON) -m pytest tests -vv -m slow --runslow
coverage:
$(PYTHON) -m pytest --cov=rocketpy tests
coverage-report:
$(PYTHON) -m pytest --cov=rocketpy tests --cov-report html
install:
$(PYTHON) -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-optional.txt
pip install -e .
isort:
isort --profile black rocketpy/ tests/ docs/
black:
black rocketpy/ tests/ docs/
pylint:
-pylint rocketpy tests --output=.pylint-report.txt
build-docs:
cd docs && $(PYTHON) -m pip install -r requirements.txt && make html
cd ..