-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 731 Bytes
/
Makefile
File metadata and controls
32 lines (27 loc) · 731 Bytes
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
VENV = venv
PYTHON = python3.11
PIP = $(VENV)/bin/pip
MYPY = $(VENV)/bin/mypy
ISORT = $(VENV)/bin/isort
BLACK = $(VENV)/bin/black
FLAKE8 = $(VENV)/bin/flake8
create-venv:
@if [ -d $(VENV) ]; then \
echo "Virtual environment '$(VENV)' already exists."; \
else \
echo "Creating virtual environment with $(PYTHON)"; \
$(PYTHON) -m venv $(VENV); \
fi
install: create-venv
@echo "Installing dependencies with $(PIP)"
$(PIP) install -r requirements.txt
check-types:
@echo "Checking types with mypy"
$(MYPY) .
check-format:
@echo "Running isort..."
$(ISORT) --settings-file config/.isort.cfg .
@echo "Running black..."
$(BLACK) --config config/.black .
@echo "Running flake8..."
$(FLAKE8) --config config/.flake8 .