-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
46 lines (33 loc) · 1.04 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
install-dev:
pip install -e ".[bigquery,dev,docs,duckdb,pandas,postgres,redshift,snowflake,databricks,spark]"
install-pre-commit:
pre-commit install
slow-test:
pytest -n auto tests
fast-test:
pytest -n auto tests/unit
local-test:
pytest -n auto -m "fast or local"
bigquery-test:
pytest -n auto -m "bigquery"
duckdb-test:
pytest -n auto -m "duckdb"
snowflake-test:
pytest -n auto -m "snowflake"
databricks-test:
pytest -n auto -m "databricks"
style:
pre-commit run --all-files
docs-serve:
mkdocs serve
stubs:
stubgen sqlframe/bigquery/functions.py --output ./ --inspect-mode
stubgen sqlframe/duckdb/functions.py --output ./ --inspect-mode
stubgen sqlframe/postgres/functions.py --output ./ --inspect-mode
stubgen sqlframe/snowflake/functions.py --output ./ --inspect-mode
stubgen sqlframe/databricks/functions.py --output ./ --inspect-mode
stubgen sqlframe/spark/functions.py --output ./ --inspect-mode
package:
pip3 install wheel && python3 setup.py sdist bdist_wheel
publish: package
pip3 install twine && python3 -m twine upload dist/*