-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
32 lines (25 loc) · 1.39 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
test:
@. .venv/bin/activate && ${env} python3 -m pytest -vvv --cov=. --cov-report term-missing
venv: .venv/make_venv_complete ## Create virtual environment
.venv/make_venv_complete:
python3 -m venv .venv
. .venv/bin/activate && ${env} pip install -U pip
. .venv/bin/activate && ${env} pip install -U pip-tools
. .venv/bin/activate && ${env} pip install -Ur requirements.txt
. .venv/bin/activate && ${env} pip install -Ur requirements-dev.txt
touch .venv/make_venv_complete
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} pip install -U pip-tools
. .venv/bin/activate && ${env} python3 -m piptools sync requirements.txt requirements-dev.txt
lint: venv ## Do basic linting
@. .venv/bin/activate && ${env} python3 -m pylint kassa.py plugins
@. .venv/bin/activate && ${env} python3 -m black --check .
check-types: venv ## Check for type issues with mypy
@. .venv/bin/activate && ${env} python3 -m mypy --check .
fix:
@. .venv/bin/activate && ${env} python3 -m black .