-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (32 loc) · 1013 Bytes
/
makefile
File metadata and controls
40 lines (32 loc) · 1013 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
33
34
35
36
37
38
39
40
# Use Poetry for dependency management and running tasks
# Target to install dependencies
install:
poetry install
# Target to update dependencies
update:
poetry update
# Target to export requirements.txt for compatibility
requirements:
poetry export -f requirements.txt --output requirements/base.txt --without-hashes
# Target to run linting
lint:
poetry run flake8 .
# Target to run the application
poetry run python src/main.py
# Clean up cache files, etc.
clean:
rm -rf .pytest_cache .mypy_cache
find . -name "*.pyc" -delete
# Target to build the package
build:
poetry build
# Help target to display available commands
help:
@echo "Available commands:"
@echo " install Install project dependencies"
@echo " update Update project dependencies"
@echo " requirements Export dependencies to requirements.txt"
@echo " lint Run linting"
@echo " run Run the application"
@echo " clean Remove cache files"
@echo " build Build the package"