-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
71 lines (50 loc) · 1.39 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
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
65
66
67
68
69
70
71
PATH := node_modules/.bin:$(PATH)
SHELL := /bin/bash
bootstrap:
cd backend && poetry install --extras "backend worker"
cd frontend && yarn install --frozen-lockfile
deploy-development:
./scripts/deploy-development.sh
deploy-production:
./scripts/deploy-production.sh
deploy-staging:
./scripts/deploy-staging.sh
build:
./scripts/build.sh
build-push:
./scripts/build-push.sh
# Clean local development environment
clean:
sudo find . -type d -name __pycache__ -exec rm -r {} \+
find . -type d -name .pytest_cache -exec rm -r {} \+
find . -type d -name .mypy_cache -exec rm -r {} \+
rm docker-stack.yml
serve-frontend:
cd frontend && yarn run serve
build-docs:
mkdocs build
serve-docs:
mkdocs serve
update-frontend:
cd frontend && ncu -u && yarn install
update-backend:
cd backend && poetry update
mypy:
cd backend && mypy histocat
pyright:
cd backend && pyright
isort:
cd backend && isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 histocat
vulture:
cd backend && vulture histocat --min-confidence 70
black:
cd backend && black histocat
autoflake:
cd backend && autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place app --exclude=__init__.py
# Some Docker-related helper commands
start:
docker ps -qa | xargs docker start
stop:
docker ps -q | xargs docker stop
restart:
docker ps -qa | xargs docker restart