-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
61 lines (43 loc) · 969 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
53
54
55
56
57
58
59
60
61
run.bot:
python -m bot
run.server.local:
sh ./run-local.sh
run.server.prod:
python -m gunicorn api.web.wsgi:application \
--bind 0.0.0.0:80 \
--workers ${WORKERS} \
--threads ${THREADS} \
--timeout 480
run.bot.local:
python -m bot
run.bot.prod:
python -m bot
run.celery.local:
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES celery -A tasks.app worker --loglevel=DEBUG
run.celery.prod:
celery -A tasks.app worker --loglevel=INFO
makemigrations:
python manage.py makemigrations
migrate:
python manage.py migrate
collectstatic:
python manage.py collectstatic --no-input
createsuperuser:
python manage.py createsuperuser --email "" --username admin
# Tests, linters & formatters
fmt:
make -k ruff-fmt black
lint:
make -k ruff black-check mypy
black:
python -m black .
black-check:
python -m black --check .
ruff:
python -m ruff check .
ruff-fmt:
python -m ruff --fix-only --unsafe-fixes .
test:
python -m pytest
mypy:
python -m mypy .