-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 1.02 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
.PHONY: help install-dependencies install-dev-dependencies install-extra-dependencies lint test-bot bot
help:
@echo "install-dependencies installs python dependencies"
@echo "install-dev-dependencies installs python dev dependencies"
@echo "install-extra-dependencies install extra dependencies"
@echo ""
@echo "lint runs linter"
@echo ""
@echo "test-bot runs bot on test bot account, for testing"
@echo "bot runs bot on main bot account, in production"
install-dependencies:
python -m pip install -r requirements.txt
install-dev-dependencies:
python -m pip install -r requirements-dev.txt
install-extra-dependencies:
pyppeteer-install
lint:
python -m pylint discord_bot discord_bot.py
python -m black --check .
test-bot:
python discord_bot.py ${DISCORD_BOT_TEST_TOKEN} -isthereanydeal_token=${ISTHEREANYDEAL_TOKEN}
bot:
python discord_bot.py ${DISCORD_BOT_TOKEN} -chromium_args=--no-sandbox -isthereanydeal_token=${ISTHEREANYDEAL_TOKEN}