-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 767 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 767 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
38
39
UV = uv
MIX = mix
.PHONY: all install install-elixir install-python run run-python test lint validate clean
all: install
install: install-elixir install-python
install-elixir:
$(MIX) deps.get
install-python:
cd pythonbridge && $(UV) sync
run:
$(MIX) run --no-halt
# TODO: Temporary until Elixir webhook server is set up
run-python:
cd pythonbridge && PYTHONPATH=$(PWD) $(UV) run python -m pythonbridge.main
test:
$(MIX) test
cd pythonbridge && PYTHONPATH=$(PWD) $(UV) run python -m unittest discover -s tests -v
format:
$(MIX) format
cd pythonbridge && $(UV) run ruff format .
lint:
$(MIX) format
cd pythonbridge && $(UV) run ruff check .
validate: format lint test
clean:
rm -rf _build deps
rm -rf pythonbridge/.venv pythonbridge/__pycache__