-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
57 lines (42 loc) · 1.02 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
install:
pip install -e .
dev-install:
pip install -r dev_requirements.txt
pip install psychopy==2024.2.1 --no-deps
pip install kenlm==0.1 --global-option="--max_order=12"
make install
test-all:
make coverage-report
make type
make lint
unit-test:
pytest --mpl -k "not slow"
integration-test:
pytest --mpl -k "slow"
coverage-report:
coverage run --branch --source=bcipy -m pytest --mpl -k "not slow"
coverage report
coverage-html:
coverage run --branch --source=bcipy -m pytest --mpl -k "not slow"
coverage html
lint:
flake8 bcipy
lint-fix:
autopep8 --in-place --aggressive -r bcipy
flake8 bcipy
type:
mypy bcipy
type-html:
mypy bcipy --html-report type-report
clean:
find . -name "*.py[co]" -o -name __pycache__ -exec rm -rf {} +
find . -path "*/*.pyo" -delete
find . -path "*/*.pyc" -delete
bci-gui:
python bcipy/gui/BCInterface.py
viewer:
python bcipy/gui/viewer/data_viewer.py --file $(filepath)
offset:
python bcipy/helpers/offset.py -p
offset-recommend:
python bcipy/helpers/offset.py -r -p