-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
67 lines (42 loc) · 881 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
62
63
64
# Django
serve:
python manage.py runserver
migrations:
python manage.py makemigrations
showmigrations:
python manage.py showmigrations
migrate:
python manage.py migrate
collect:
python manage.py collectstatic --noinput
super:
python manage.py createsuperuser
shell:
python manage.py shell
# requirements
install:
pip install -r requirements.txt
freeze: install
pip freeze > requirements.txt
# virtual env
newenv:
python3 -m venv venv
startenv:
source venv/bin/activate
stopenv:
deactivate
# Code Formatting - Black
# Black configuration is in pyproject.toml
format:
black . --config pyproject.toml
# Linting - Flake8
# Flake8 configuration is in tox.ini
lint:
flake8 .
remove_unused:
autoflake --remove-all-unused-imports --remove-unused-variables -r -i ./*/*
# Infrastrucutre
startdeps:
docker-compose up -d
stopdeps:
docker-compose down