-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 1.04 KB
/
Makefile
File metadata and controls
49 lines (35 loc) · 1.04 KB
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
REPOSITORY = process-data-flow
SOURCE = process_data_flow
build:
@docker build -t $(REPOSITORY):latest .
install:
@echo "\nInstalling project..."
@poetry install --no-root
@echo "\nProject installed!"
init_containers:
@docker compose up -d
check_format:
@poetry run ruff format $(SOURCE) --check
format:
@poetry run ruff format $(SOURCE)
check_lint:
@poetry run ruff check $(SOURCE)
lint:
@poetry run ruff check $(SOURCE) --fix
check_types:
@poetry run mypy $(SOURCE)
check_all: check_format check_lint check_types
@echo "\nAll checks have been passed!"
prepare_env_pyenv:
@echo "\nPreparing virtualenv using pyenv..."
@pyenv update
@pyenv install 3.11.3 -s
@pyenv virtualenv -f 3.11.3 process_data_flow-env
@pyenv local process_data_flow-env
@echo "\nInstalling poetry..."
@pip install poetry
@poetry config virtualenvs.create false --local
@poetry config virtualenvs.prefer-active-python true --local
@echo "\nProject prepared to install!"
install_with_pyenv: prepare_env_pyenv install
@echo "\nProject installed with pyenv!"