-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (41 loc) · 1.14 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
default: check
test:
> poetry run python -m pytest
install:
> poetry install -v
update:
> poetry update
remove-env:
> poetry env remove python3
deploy: clean
> python3 -m pip install --user .
build: clean
> poetry build
mypy:
> poetry run mypy nordvpn_indicator/ nordvpn/
flake:
> poetry run flake8 nordvpn_indicator/ nordvpn/ tests/
isort:
> poetry run isort nordvpn_indicator/ nordvpn/ tests/
black:
> poetry run black nordvpn_indicator/ nordvpn/ tests/
format: isort black
lint: flake mypy
check: install format lint test
ci: check build
clean:
> rm -rf *egg-info
> rm -rf build/
> rm -rf dist/
> find . -name '*.pyc' -exec rm -f {} +
> find . -name '*.pyo' -exec rm -f {} +
> find . -name '*~' -exec rm -f {} +
> find . -name '__pycache__' -exec rm -rf {} +
> find . -name '_build' -exec rm -rf {} +
> find . -name '.mypy_cache' -exec rm -rf {} +
> find . -name '.pytest_cache' -exec rm -rf {} +
.PHONY: test lint format install build deploy ci check mypy flake isort black remove-env update