-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 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
PYTHON_VERSION = 3.10
# help: help - Display this makefile's help information
.PHONY: help
help:
@grep "^# help\:" Makefile | grep -v grep | sed 's/\# help\: //' | sed 's/\# help\://'
# help: download-poetry - Download poetry
download-poetry:
curl -sSL https://install.python-poetry.org | python3 -
# help: install - Install python dependencies using poetry
.PHONY: install
install:
@poetry env use $(PYTHON_VERSION)
@poetry lock -n
@poetry install -n
@poetry run pre-commit install -t pre-commit -t pre-push
.PHONY: install-requirements
# help: requirements - Install Python Dependencies
install-requirements:
@poetry install -n
.PHONY: install-dev-requirements
# help : install-dev-requirements - Install Python Dependencies for development
install-dev-requirements:
@poetry install -n --with dev
.PHONY: update-requirements
#help: update-requirements - Update Python Dependencies (requirements.txt and requirements-dev.txt)
update-requirements:
@poetry lock -n
.PHONY: format-code
#help: format-code - Format/lint all-files using pre-commit hooks (black, flake8, isort, ...)
format-code:
@poetry run pre-commit run -a