-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1.19 KB
/
Makefile
File metadata and controls
42 lines (32 loc) · 1.19 KB
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
dev:
uv sync --locked --extra dev
install:
uv sync --locked
fmt:
uv run black databricks tests
uv run autoflake -ri databricks tests
uv run isort databricks tests
fmte:
uv run black examples
uv run autoflake -ri examples
uv run isort examples
lint:
uv run pycodestyle databricks
uv run autoflake --check-diff --quiet --recursive databricks
test:
uv run pytest -m 'not integration and not benchmark' --cov=databricks --cov-report html tests
integration:
uv run pytest -n auto -m 'integration and not benchmark' --reruns 4 --dist loadgroup --cov=databricks --cov-report html tests
benchmark:
uv run pytest -m 'benchmark' tests
coverage: test
open htmlcov/index.html
fix-lockfile:
@# Replace JFrog proxy URLs with public equivalents in lockfiles.
@# Prevents proxy URLs from being accidentally committed.
find . -type f -name '*.lock' -not -path './.github/*' \
-exec sed -i 's|databricks\.jfrog\.io/artifactory/api/pypi/db-pypi/simple|pypi.org/simple|g' {} +
find . -type f -name '*.lock' -not -path './.github/*' \
-exec sed -i 's|databricks\.jfrog\.io/artifactory/api/pypi/db-pypi/packages|files.pythonhosted.org|g' {} +
clean:
rm -fr dist *.egg-info .pytest_cache build htmlcov .venv