-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (30 loc) · 853 Bytes
/
Makefile
File metadata and controls
58 lines (30 loc) · 853 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
VENV = .venv
UV = VIRTUAL_ENV=$(VENV) uv
UV_PIP = $(UV) pip
PYTHON = $(VENV)/bin/python
NOT_SLOW_PYTEST_ARGS = -m 'not slow'
ARGS =
.PHONY: build
venv-clean:
@if [ -d "$(VENV)" ]; then \
rm -rf "$(VENV)"; \
fi
venv-create:
$(UV) venv $(VENV)
dev-install:
$(UV) sync
dev-cython-clean:
rm -f sciencebeam_alignment/align_fast_utils.c sciencebeam_alignment/align_fast_utils.so
dev-cython-compile:
$(PYTHON) setup.py build_ext --inplace
dev-venv: venv-create dev-install dev-cython-compile
dev-flake8:
$(PYTHON) -m flake8 sciencebeam_alignment tests setup.py
dev-pylint:
$(PYTHON) -m pylint sciencebeam_alignment tests setup.py
dev-lint: dev-flake8 dev-pylint
dev-pytest:
$(PYTHON) -m pytest -p no:cacheprovider $(ARGS)
dev-watch:
$(PYTHON) -m pytest_watch -- -p no:cacheprovider $(ARGS)
dev-test: dev-lint dev-pytest