a | b/Makefile | ||
---|---|---|---|
1 | |||
2 | .ONESHELL: |
||
3 | SHELL:=/bin/bash |
||
4 | |||
5 | .PHONY: create-env install documentation test |
||
6 | |||
7 | default: |
||
8 | @echo "Call a specific subcommand: create-env,install,documentation,test" |
||
9 | |||
10 | .venv: |
||
11 | python -m venv .venv |
||
12 | |||
13 | create-env: .venv |
||
14 | |||
15 | install : .venv |
||
16 | . .venv/bin/activate |
||
17 | pip install -r '.[dev,setup]'.txt |
||
18 | python scripts/conjugate_verbs.py |
||
19 | pip install -e . |
||
20 | pre-commit install |
||
21 | |||
22 | documentation: .venv |
||
23 | . .venv/bin/activate |
||
24 | pip install -e '.[docs]' |
||
25 | mkdocs serve |
||
26 | |||
27 | test: .venv |
||
28 | . .venv/bin/activate |
||
29 | python -m pytest |