forked from agencyenterprise/neural-data-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 1.65 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
SHELL=/bin/bash -o pipefail
.PHONY:help lint lint-check test test-converage clean apidoc spellcheck htmldoc run-closed-loop
help:
@echo "Available commands are: \n*lint, lint-check, test"
lint:
poetry run black .
poetry run isort .
poetry run flake8 .
poetry run pyright
lint-check:
poetry run black --check .
poetry run isort --check .
poetry run flake8 .
poetry run pyright --warnings
test:
poetry run pytest . --color=yes --ignore=experiments --ignore=BKP -m "not jitter" --cov=src/neural_data_simulator --cov-report=term-missing:skip-covered --junitxml=pytest.xml --cov-report=xml 2>&1
test-coverage:
poetry run pytest . --color=yes --ignore=experiments --ignore=BKP -m "not jitter" --cov=src/neural_data_simulator --cov-report=term-missing:skip-covered --junitxml=pytest.xml --cov-report=xml 2>&1 | tee pytest-coverage.txt
clean:
-rm docs/source/*.rst
-rm -rf docs/source/neural_data_simulator
-rm -rf docs/source/tools
-rm -rf docs/html
-rm -rf docs/source/auto_examples
apidoc:
poetry run sphinx-apidoc -M -H "Neural Data Simulator" -t docs/templates -o docs/source/neural_data_simulator src/neural_data_simulator src/neural_data_simulator/settings.py src/neural_data_simulator/util src/plugins
poetry run sphinx-apidoc -M -H "Example Implementations and Utilities" -t docs/templates -o docs/source/tools src/ src/neural_data_simulator src/plugins
spellcheck: apidoc
poetry run sphinx-build -W -b spelling docs/source docs/build
htmldoc: apidoc
poetry run make -C docs html
run-closed-loop:
poetry run encoder & poetry run ephys_generator & poetry run decoder & poetry run center_out_reach; pkill -f decoder; pkill -f ephys_generator; pkill -f encoder