-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (43 loc) · 1.03 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
.PHONY: fmt
fmt:
isort . \
&& black .
.PHONY: lint
lint:
black --check .
isort --check .
flake8 .
lint-type: lint
mypy .
.PHONY: test
test:
pytest --verbose
.PHONY: test
test-skipfull:
pytest --verbose --skip-full
.PHONY: install
install:
pip install .
.PHONY: install-dev
install-dev:
pip install -r requirements.txt \
&& pip install -e .
.PHONY: clean-docs
clean-docs:
rm -rf docs
.PHONY: docs
docs: clean-docs
mkdir -p docs \
&& pdoc --html --output-dir docs jeiss-convert
.PHONY: readme
readme:
dat2hdf5 --help | p2c --tgt _dat2hdf5 README.md && \
dat2hdf5-verify --help | p2c --tgt _dat2hdf5-verify README.md && \
datmeta --help | p2c --tgt _datmeta README.md && \
datmeta ls --help | p2c --tgt _datmeta-ls README.md && \
datmeta get --help | p2c --tgt _datmeta-get README.md && \
datmeta json --help | p2c --tgt _datmeta-json README.md && \
datmeta fmt --help | p2c --tgt _datmeta-fmt README.md
.PHONY: container
container:
sudo apptainer build --bind "$(shell pwd)/.git:/application/.git" jeiss_convert.sif ./Apptainer