forked from RocketPy-Team/RocketPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 797 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
38
39
40
41
42
43
44
# 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 .
format: isort black
isort:
isort --profile black rocketpy/ tests/ docs/
black:
black rocketpy/ tests/ docs/
lint: flake8 pylint
flake8:
flake8 rocketpy/ tests/
pylint:
-pylint rocketpy/ tests/ --output=.pylint-report.txt
build-docs:
cd docs && $(PYTHON) -m pip install -r requirements.txt && make html
cd ..