-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
73 lines (50 loc) · 1.36 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
73
DOCSOURCEDIR = "./docs"
DOCBUILDDIR = "./docs/_build"
.PHONY: clean-docs
clean-docs:
@rm -rf ./docs/build
.PHONY: docs
docs:
@poetry run sphinx-build -M html "$(DOCSOURCEDIR)" "$(DOCBUILDDIR)"
.PHONY: livedocs
livedocs:
@poetry run sphinx-autobuild "$(DOCSOURCEDIR)" "$(DOCBUILDDIR)" -b html --watch "./src"
.PHONY: format
format:
@poetry run sh -c 'isort . && black .'
.PHONY: check
check:
@rm -f .coverage*
@TOX_SKIP_ENV='pypy3|bandit|coverage' poetry run tox run-parallel -p auto
.PHONY: lint
lint:
@poetry run tox run-parallel -m lint
.PHONY: repl
repl:
@BASILISP_USE_DEV_LOGGER=true poetry run basilisp repl
LOGLEVEL ?= INFO
.PHONY: nrepl-server
nrepl-server:
@BASILISP_USE_DEV_LOGGER=true BASILISP_LOGGING_LEVEL=$(LOGLEVEL) poetry run basilisp nrepl-server
.PHONY: test
test:
@rm -f .coverage*
@TOX_SKIP_ENV='pypy3' poetry run tox run-parallel -m test
.PHONY: type-check
type-check:
@poetry run tox run-parallel -m mypy
lispcore.py:
@BASILISP_DO_NOT_CACHE_NAMESPACES=true \
poetry run basilisp run -c \
'(spit "lispcore.py" @#'"'"'basilisp.core/*generated-python*)'
@poetry run black lispcore.py
.PHONY: clean
clean:
@rm -rf ./lispcore.py
.PHONY: pypy-shell
pypy-shell:
@docker run -it \
--mount src=`pwd`,target=/usr/src/app,type=bind \
--workdir /usr/src/app \
pypy:3.10-7.3-slim-buster \
/bin/sh -c 'pip install -e . && basilisp repl'