-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
65 lines (48 loc) · 1.64 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: all format lint test tests free_tests integration_tests help
# Default target executed when no arguments are given to make.
all: help
test:
poetry run pytest tests
test_local:
docker compose -f tests/integration/docker-compose.yml up -d
poetry run pytest tests
docker compose -f tests/integration/docker-compose.yml stop
test_integration_local:
docker compose -f tests/integration/docker-compose.yml up -d
poetry run pytest tests/integration -s
docker compose -f tests/integration/docker-compose.yml stop
test_integration:
poetry run pytest tests/integration
test_unit:
poetry run pytest tests/unit
init:
poetry install --with dev, ui
pre-commit install
init_workshop:
poetry config virtualenvs.in-project true
poetry install --with workshop
make streamlit:
poetry run streamlit run streamlit_app.py $(file_path)
######################
# LINTING AND FORMATTING
######################
format:
poetry run ruff format
poetry run ruff check --select I . --fix
poetry run ruff check .
######################
# MYPY CHECK
######################
mypy:
poetry run mypy --strict --ignore-missing-imports --allow-subclassing-any --allow-untyped-calls .
######################
# HELP
######################
help:
@echo '----'
@echo 'init........................ - initialize the repo for development'
@echo 'init_workshop............... - initialize the repo for the workshop'
@echo 'format...................... - run code formatters'
@echo 'test........................ - run all unit and integration tests'
@echo 'test_unit................... - run all free unit tests'
@echo 'test_integration............ - run all integration tests'