forked from databricks/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 800 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 800 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
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 -name _models | xargs 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