-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
56 lines (43 loc) · 1.34 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
.PHONY: all clean inplace test isort black format flake check-manifest pep build-doc conda dist-build
all: clean inplace pep test build-doc dist-build
inplace:
python -m pip install --upgrade pip
python -m pip install --editable ".[dev]" --no-cache-dir
clean:
find . -type d -name 'eeg_positions.egg-info' -exec rm -rf {} +;
find . -type d -name 'dist' -exec rm -rf {} +;
find . -type d -name 'build' -exec rm -rf {} +;
find . -type d -name '__pycache__' -exec rm -rf {} +;
find . -type d -name '.pytest_cache' -exec rm -rf {} +;
find . -type f -name 'coverage.xml' -exec rm -rf {} +;
find . -type f -name '.coverage' -exec rm -rf {} +;
test:
pytest --doctest-modules --doctest-ignore-import-errors --cov=eeg_positions/ --cov-report=xml --cov-config=setup.cfg --verbose -s
isort:
isort eeg_positions
isort examples
isort docs/conf.py
black:
black eeg_positions
black examples
black docs/conf.py
format: isort black
flake:
flake8 --docstring-convention numpy eeg_positions
flake8 --docstring-convention numpy examples
check-manifest:
check-manifest .
pep: flake check-manifest
build-doc:
rm -rf docs/auto_examples
rm -rf docs/generated
cd docs; make clean
cd docs; make html
cd docs; make view
conda:
conda env remove -n eegpos
conda create --yes -n eegpos Python=3.9
dist-build:
@echo "Building dist"
rm -rf dist
@python -m build