forked from mne-tools/mne-bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·63 lines (48 loc) · 1.28 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
.PHONY: all clean-pyc clean-so clean-build clean-ctags clean-cache clean-e clean inplace test ruff-check ruff-format pep build-doc dist-build
all: clean inplace pep test build-doc dist-build
clean-pyc:
find . -name "*.pyc" | xargs rm -f
clean-so:
find . -name "*.so" | xargs rm -f
find . -name "*.pyd" | xargs rm -f
clean-build:
rm -rf _build
clean-ctags:
rm -f tags
clean-cache:
find . -name "__pycache__" | xargs rm -rf
clean-e:
find . -name "*-e" | xargs rm -rf
clean: clean-build clean-pyc clean-so clean-ctags clean-cache clean-e
inplace:
@python -m pip install -e ".[dev]"
test:
@echo "Running tests"
@python -m pytest . \
--doctest-modules \
--cov=mne_bids mne_bids/tests/ mne_bids/commands/tests/ \
--cov-report=xml \
--cov-config=pyproject.toml \
--verbose \
--ignore mne-python \
--ignore examples
ruff-format:
@echo "Running ruff format"
@ruff format mne_bids/
@ruff format examples/
ruff-check:
@echo "Running ruff check"
@ruff check mne_bids/
@ruff check examples/ --ignore=D103,D400,D205
pep: ruff-check ruff-format
build-doc:
@echo "Building documentation"
make -C doc/ clean
make -C doc/ html
cd doc/ && make view
dist-build:
@echo "Building dist"
rm -rf dist
@python -m pip install build twine
@python -m build
@python -m twine check --strict dist/*