-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 1.18 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
default: start
# --------------------------------------------------------------------------------------------------
# Docker compose settings
# --------------------------------------------------------------------------------------------------
# For Windows11 + WSL + WSLg(https://github.com/microsoft/wslg)
compose-conf:
bash './scripts/set-wslg.sh'
cd ./docker && docker-compose config
compose-up:
bash docker-compose -f docker-compose.yml up -d --build
# --------------------------------------------------------------------------------------------------
# In container command
# --------------------------------------------------------------------------------------------------
start:
poetry run python src/main.py
install-dev:
poetry config virtualenvs.in-project true
poetry install
install:
poetry config virtualenvs.in-project true
poetry install --no-dev
lint:
poetry run pysen run lint
lint-fix:
poetry run pysen run format && \
poetry run pysen run lint
test:
poetry run pytest
ci:
rm -rf .venv && make install-dev
clean:
rm -rf **/__pycache__ .pytest_cache .mypy_cache
.PHONY: start lint lint-fix test install-dev install clean test