This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 1.46 KB
/
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
env = env PATH=${bin}:$$PATH
venv: .venv/touchfile ## Create virtual environment
.venv/touchfile:
test -d .venv || python3 -m venv .venv
. .venv/bin/activate; pip install -U pip
. .venv/bin/activate; pip install pip-tools
. .venv/bin/activate && ${env} python3 -m piptools compile requirements.in
. .venv/bin/activate && ${env} python3 -m piptools compile requirements-dev.in
. .venv/bin/activate && ${env} python3 -m piptools sync requirements.txt requirements-dev.txt
. .venv/bin/activate && ${env} pip install -e .
touch .venv/touchfile
clean_venv: ## Remove virtual environment
@echo "Cleaning venv"
@rm -rf .venv
fresh: clean_venv venv
pip-compile: ## synchronizes the .venv with the state of requirements.txt
. .venv/bin/activate && ${env} python3 -m piptools compile requirements.in
. .venv/bin/activate && ${env} python3 -m piptools compile requirements-dev.in
pip-sync: ## synchronizes the .venv with the state of requirements.txt
. .venv/bin/activate && ${env} python3 -m piptools sync requirements.txt
pip-sync-dev: ## synchronizes the .venv with the state of requirements.txt
. .venv/bin/activate && ${env} python3 -m piptools sync requirements.txt requirements-dev.txt
lint:
. .venv/bin/activate && ${env} pylint inge6 tests
audit:
. .venv/bin/activate && ${env} bandit inge6
test:
. .venv/bin/activate && ${env} pytest tests
type-check:
. .venv/bin/activate && ${env} MYPYPATH=stubs/ mypy --show-error-codes inge6
check-all: lint type-check test audit