-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (42 loc) · 1.02 KB
/
Makefile
File metadata and controls
53 lines (42 loc) · 1.02 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
50
51
52
53
.PHONY: install install-dev test format lint type-check clean run docker-build docker-run
# Install production dependencies
install:
pip install -r requirements.txt
python -m spacy download en_core_web_sm
# Install development dependencies
install-dev:
pip install -r requirements-dev.txt
python -m spacy download en_core_web_sm
# Run tests
test:
pytest tests/ -v
# Format code
format:
black app/ tests/
isort app/ tests/
# Lint code
lint:
flake8 app/ tests/
# Type checking
type-check:
mypy app/
# Clean up temporary files
clean:
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} +
rm -f local.db
rm -f *.dlq.jsonl
# Run the application
run:
python start.py
# Build Docker image
docker-build:
docker build -t governsai-precheck .
# Run Docker container
docker-run:
docker run -p 8080:8080 governsai-precheck
# Development setup
dev-setup: install-dev
@echo "Development environment ready!"
@echo "Run 'make run' to start the service"