forked from mne-tools/mne-bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·58 lines (43 loc) · 1.11 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
.PHONY: all clean-pyc clean-so clean-build clean-ctags clean-cache clean-e inplace test check-manifest flake pydocstyle pep build-doc
all: clean inplace pep test build-doc
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 setup.py develop
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
pydocstyle:
@echo "Running pydocstyle"
@pydocstyle .
pep: flake pydocstyle check-manifest
build-doc:
@echo "Building documentation"
make -C doc/ clean
make -C doc/ html
cd doc/ && make view