-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.08 KB
/
Makefile
File metadata and controls
46 lines (37 loc) · 1.08 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
.PHONY: help install test lint format clean docs docker run
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make test - Run tests"
@echo " make lint - Run linters"
@echo " make format - Format code"
@echo " make clean - Clean build artifacts"
@echo " make docs - Build documentation"
@echo " make docker - Build Docker image"
@echo " make run - Run service locally"
install:
pip install -r requirements.txt
pip install -r requirements-dev.txt
test:
pytest --cov=async_notification_service --cov-report=html --cov-report=term
lint:
flake8 async_notification_service tests
mypy async_notification_service --ignore-missing-imports
format:
black async_notification_service tests
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .coverage
rm -rf htmlcov/
rm -rf docs/_build/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
docs:
cd docs && make html
docker:
docker build -t gnr-notification-service .
run:
python main.py