-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 914 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 914 Bytes
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
sources = databricks databricks_tests
fmt:
uv run ruff check --fix $(sources) || true
uv run ruff format
docs:
# Python 3.12+ is needed for get_overloads
uv run --python 3.12 sphinx-build docs docs/_output --show-traceback --nitpicky --fresh-env --keep-going
lint:
# check if lock matches the project metadata
uv lock --check
uv run ruff check $(sources)
uv run pyright
uv run ruff format --diff
codegen:
find databricks/bundles -type d -mindepth 1 -maxdepth 1 \
! -path databricks/bundles/core \
! -path databricks/bundles/resources \
-exec rm -rf {} \;
cd codegen; uv run -m pytest codegen_tests
cd codegen; uv run -m codegen.main --output ..
uv run ruff check --fix $(sources) || true
uv run ruff format
test:
uv run python -m pytest databricks_tests --cov=databricks.bundles --cov-report html -vv
build:
rm -rf build dist
uv build .
.PHONY: fmt docs lint codegen test build