-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (54 loc) · 1.23 KB
/
Makefile
File metadata and controls
71 lines (54 loc) · 1.23 KB
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
68
69
70
71
install:
pip install -e .
dev-install:
pip install -e ".[dev]"
make install
build:
pip install -e ".[release]"
python -m build --sdist --wheel
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 -m pytest --mpl -k "not slow"
coverage report
coverage-xml:
coverage xml -o "cobertura.xml"
coverage-html:
coverage run --branch -m pytest --mpl -k "not slow"
coverage html
lint:
flake8 bcipy
lint-fix:
autopep8 --in-place --aggressive --max-line-length 120 --ignore "E402,E226,E24,W50,W690" -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
find . -path "*/*/__pycache__" -delete
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .coverage
rm -rf htmlcov
rm -rf dist
rm -rf build
rm -rf bcipy.egg-info
rm -rf bcipy_cache
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