forked from koaning/scikit-lego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (43 loc) · 880 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: docs
flake:
flake8 sklego
flake8 tests
flake8 setup.py
install:
pip install -e .
develop:
pip install -e ".[dev]"
pre-commit install
python setup.py develop
doctest:
python -m doctest -v sklego/*.py
test-notebooks:
pytest --nbval-lax doc/*.ipynb
test: doctest
pytest --disable-warnings --cov=sklego
rm -rf .coverage*
pytest --nbval-lax doc/*.ipynb
precommit:
pre-commit run
spelling:
codespell sklego/*.py
docs:
rm -rf doc/.ipynb_checkpoints
sphinx-build -a -E doc docs
docs-deploy: docs
netlify deploy --dir=docs --prod
clean:
rm -rf .pytest_cache
rm -rf build
rm -rf dist
rm -rf docs
rm -rf scikit_lego.egg-info
rm -rf .ipynb_checkpoints
rm -rf .coverage*
black:
black sklego tests setup.py
check: flake precommit test spelling clean
pypi: clean
python setup.py sdist
python setup.py bdist_wheel --universal
twine upload dist/*