forked from surfranch/TelegramShillBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 832 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
.PHONY: help clean setup format lint test flt run
.DEFAULT: help
help:
@echo "make clean deactivate and remove venv and any leftover *.session files"
@echo "make setup create venv and pip install requirements.txt"
@echo "make format run black"
@echo "make lint run pylint"
@echo "make test run unittest"
@echo "make flt run make format, make lint, and make test"
@echo "make run run the bot"
clean:
@deactivate > /dev/null 2>&1 || echo "skipping deactivate"
@rm -fr venv *.session
setup:
@python3 -m venv venv
@. venv/bin/activate && pip install -r requirements.txt
format:
@. venv/bin/activate && black *.py
lint:
@. venv/bin/activate && pylint tg_shill_bot.py
test:
@. venv/bin/activate && python test_tg_shill_bot.py
flt: format lint test
run:
@. venv/bin/activate && python tg_shill_bot.py