-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 949 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
.PHONY: build pytest dbc
pytest:
DDS_STORE_TYPE=memory pytest -o log_cli=true -o log_cli_level=debug dds_tests
pytest -o log_cli=true -o log_cli_level=debug dds_tests
PYTHONPATH=$(PWD) pytest --nbmake dds_tests_assets/
build:
rm -rf ./dist/*.whl
python setup.py bdist_wheel
lint:
mypy --show-error-context --show-error-codes --pretty --allow-untyped-defs --strict --show-traceback dds
black --check dds
flake8 dds
dbc:
databricks fs cp $(PWD)/dist/dds_py-0.1.0-py3-none-any.whl dbfs:/libs/dds_py-0.1.1-py3-none-any.whl --overwrite --profile dds
release:
git remote update
git checkout origin/master
git git tag -a v$(python -c "import dds._version; print(dds._version.version)") -m "tag"
git push --tags
doc:
PYTHONPATH=$(PWD):$(PWD)/doc_source JUPYTER_CONFIG_DIR=$(PWD)/doc_source/jupyter mkdocs build
doc-serve:
PYTHONPATH=$(PWD):$(PWD)/doc_source JUPYTER_CONFIG_DIR=$(PWD)/doc_source/jupyter mkdocs serve --no-livereload