-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 660 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 660 Bytes
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
PYTHON ?= python3
PIP ?= $(PYTHON) -m pip
ENV_FILE ?= .env
ENV_EXAMPLE ?= env.example
.PHONY: install dev lint type test format pre-commit env-validate env-sample
install:
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
$(PYTHON) scripts/install_pjsua2.py
dev:
$(PIP) install --upgrade pip
$(PIP) install -r requirements-dev.txt
pre-commit install
lint:
ruff check .
type:
mypy --config-file mypy.ini app
test:
pytest -q
format:
ruff format .
pre-commit:
pre-commit run --all-files
env-validate:
$(PYTHON) -m app.config validate --path $(ENV_FILE)
env-sample:
$(PYTHON) -m app.config sample --write --path $(ENV_EXAMPLE)