-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.21 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1.21 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
# Makefile for GovOn Project
.PHONY: help install dev-install lint format test docker-build docker-run clean
PYTHON := python3
PIP := $(PYTHON) -m pip
help:
@echo "Available commands:"
@echo " install : Install dependencies"
@echo " dev-install : Install development dependencies"
@echo " lint : Run linting checks (black, isort, flake8, mypy)"
@echo " format : Format code (black, isort)"
@echo " test : Run tests (pytest)"
@echo " docker-build : Build docker image"
@echo " docker-run : Run docker container"
@echo " clean : Remove cache files"
install:
$(PIP) install .
dev-install:
$(PIP) install .[dev]
lint:
black --check .
isort --check .
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
mypy .
format:
black .
isort .
test:
pytest --cov=src --cov-report=term-missing
docker-build:
docker build -f deploy/docker/Dockerfile -t govon-backend .
docker-run:
docker compose -f deploy/compose/docker-compose.yml up -d
clean:
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name ".pytest_cache" -exec rm -rf {} +
find . -type d -name ".mypy_cache" -exec rm -rf {} +
find . -type f -name ".coverage" -delete
rm -rf htmlcov/