forked from mne-tools/mne-bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·67 lines (50 loc) · 1.27 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
.PHONY: all clean-pyc clean-so clean-build clean-ctags clean-cache clean-e clean inplace test check-manifest flake black pydocstyle 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 .[full]
test:
@echo "Running tests"
@python -m pytest . \
--doctest-modules \
--cov=mne_bids mne_bids/tests/ mne_bids/commands/tests/ \
--cov-report=xml \
--cov-config=setup.cfg \
--verbose \
--ignore mne-python \
--ignore examples
check-manifest:
@echo "Checking MANIFEST.in"
@check-manifest .
flake:
@echo "Running flake8"
@flake8 --count mne_bids examples
black:
@echo "Running black"
@black --check .
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle .
pep: flake pydocstyle check-manifest black
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 build