forked from qodo-ai/qodo-cover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (28 loc) · 1.09 KB
/
Makefile
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
# Makefile
SITE_PACKAGES=$(shell python -c "import wandb, os; print(os.path.dirname(wandb.__file__))")
.PHONY: test build installer
# Run unit tests with Pytest
test:
poetry run pytest --junitxml=testLog.xml --cov=cover_agent --cov-report=xml:cobertura.xml --cov-report=term --cov-fail-under=65 --log-cli-level=INFO
# Use Python Black to format python files
format:
black .
# Generate wheel file using poetry build command
build:
poetry build
# Build an executable using Pyinstaller
installer:
poetry run pyinstaller \
--add-data "cover_agent/version.txt:." \
--add-data "cover_agent/settings/language_extensions.toml:." \
--add-data "cover_agent/settings/test_generation_prompt.toml:." \
--add-data "cover_agent/settings/analyze_suite_test_headers_indentation.toml:." \
--add-data "cover_agent/settings/analyze_suite_test_insert_line.toml:." \
--add-data "$(SITE_PACKAGES)/vendor:wandb/vendor" \
--hidden-import=tiktoken_ext.openai_public \
--hidden-import=tiktoken_ext \
--hidden-import=wandb \
--hidden-import=wandb_gql \
--onefile \
--name cover-agent \
cover_agent/main.py