-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
52 lines (36 loc) · 815 Bytes
/
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
start: source
python3 ./main.py
source:
source venv/bin/activate
################
# installation #
################
install: venv install-requirements source
venv:
python3 -m venv venv
install-requirements: source
python3 -m pip install -U -r requirements.txt
update-requirements:
pip freeze > requirements-frozen.txt
###########
# testing #
###########
test: lint
python3 -m unittest discover tests
lint: ruff pylint mypy
ruff:
python3 -m ruff check cogs/ tests/ *.py --config tests/ruff.toml
pylint:
python3 -m pylint cogs/ tests/ *.py
mypy:
python3 -m mypy cogs/ tests/ *.py --config-file tests/mypy.ini
##########
# docker #
##########
docker-build:
docker build --no-cache -t bot-clony .
docker-run:
docker-compose up -d
container-restart:
docker-compose down
docker-compose up -d