-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (45 loc) · 991 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
#######################
# Linting and Testing
#######################
lint:
make lint-python
make lint-ui
lint-python:
make lint-black
flake8
lint-black:
black civic_jabber_app --check
black test_civic_jabber_app --check
lint-ui:
cd ui && npx prettier --check .
tidy:
make tidy-python
make tidy-ui
tidy-python:
black civic_jabber_app
black test_civic_jabber_app
tidy-ui:
cd ui && npx prettier --write .
test:
pytest test_civic_jabber_app --cov=civic_jabber_app -vv -m "not slow"
################
# Install
################
pip-compile:
pip-compile requirements/base.in
pip-compile requirements/dev.in
pip-compile requirements/test.in
pip-install:
pip install -r requirements/base.txt
pip install -r requirements/dev.txt
pip install -r requirements/test.txt
pip install -e .
npm-install:
cd ui && npm install
################
# Run
################
run-ui-local:
cd ui && npm run start
run-backend-local:
cd civic_jabber_app && uvicorn app:app --reload