-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.11 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1.11 KB
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
help :
@echo
@echo 'Possible commands:'
@echo
@echo ' make test # <-- run tests in *one* python environment (uses hatch)'
@echo ' make check # <-- check types in *one* python environment (uses hatch)'
@echo
@echo ' make testall # <-- run tests in *all* python versions (uses hatch)'
@echo ' make checkall # <-- check types in *all* python versions (uses hatch)'
@echo
@echo ' make quarto-serve # <-- run quarto over the docs'
@echo ' make docs-check # <-- check types within the docs'
@echo
test :
hatch test -i python=3.8 -vv
check :
hatch run +python=3.8 types:check
testall :
hatch test --all --cover --randomize
checkall :
hatch run types:check
QUARTO_PATH := /usr/local/bin/quarto
$(QUARTO_PATH) :
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.7.31/quarto-1.7.31-linux-amd64.deb
sudo dpkg -i quarto-1.7.31-linux-amd64.deb
rm -f quarto-1.7.31-linux-amd64.deb
quarto-serve : $(QUARTO_PATH)
rm -rf docs/_site/ docs/.quarto/
$(QUARTO_PATH) preview docs
docs-check :
hatch run docs:check
.PHONY: help test check testall checkall quarto-serve docs-check