-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
41 lines (31 loc) · 690 Bytes
/
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
.PHONY: docs build
flake:
flake8 hulearn tests setup.py
install:
pip install -e ".[test]"
develop:
pip install -e ".[dev]"
pre-commit install
python setup.py develop
test:
pytest --nbval-lax --disable-warnings --cov=hulearn tests
clean:
rm -rf .pytest_cache
rm -rf build
rm -rf dist
rm -rf hulearn.egg-info
rm -rf .ipynb_checkpoints
rm -rf .coverage*
rm -rf tests/.ipynb_checkpoints
black:
black --check .
test-notebooks:
pytest --nbval-lax docs/guide/notebooks/*.ipynb
check: black flake test clean test-notebooks
pypi: clean
python setup.py sdist
python setup.py bdist_wheel --universal
twine upload dist/*
build:
npm run build
cp -r public/* hulearn/static