-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.04 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
# TARGETS
install:
poetry install
test: install
poetry run pytest
lint: install
poetry run flake8 license_manager_simulator tests --max-line-length=110
poetry run isort --check license_manager_simulator tests
poetry run black --check license_manager_simulator tests
format: install
poetry run black license_manager_simulator tests
poetry run isort license_manager_simulator tests
qa: test lint
local: install
poetry run uvicorn --host 0.0.0.0 license_manager_simulator.main:app --reload
setup:
./scripts/create-dev-setup.sh $(lm_sim_ip)
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info
# SETTINGS
# Use one shell for all commands in a target recipe
.ONESHELL:
# Set default goal
.DEFAULT_GOAL := help
# Use bash shell in Make instead of sh
SHELL := /bin/bash