forked from dlt-hub/verified-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1.18 KB
/
Makefile
File metadata and controls
42 lines (32 loc) · 1.18 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
.PHONY: dev lint test
help:
@echo "make"
@echo " dev"
@echo " prepares development env"
@echo " lint"
@echo " runs flake and mypy on all sources"
@echo " test"
@echo " tests all the components including destinations"
dev:
uv sync --reinstall-package dlt --upgrade-package dlt
# export lockfile in widely recognized format
uv export --format requirements-txt --all-extras --all-groups --no-editable --locked -q --output-file tools/dependabot_lock/requirements.txt
lint-dlt-init:
uv run ./check-requirements.py
uv run pytest tests/test_dlt_init.py --no-header
lint-code:
./check-package.sh
uv run mypy --config-file mypy.ini ./sources
# uv run mypy --config-file mypy.ini ./tests
uv run mypy --config-file mypy.ini ./tools
uv run flake8 --max-line-length=200 --extend-ignore=W503 sources init --show-source
uv run flake8 --max-line-length=200 --extend-ignore=W503 tests --show-source
uv run black ./ --diff
lint: lint-code lint-dlt-init
format:
uv run black ./
format-lint: format lint
test:
uv run pytest tests
test-local:
ALL_DESTINATIONS='["duckdb", "postgres"]' DESTINATION__POSTGRES__CREDENTIALS=postgresql://loader:loader@localhost:5432/dlt_data uv run pytest tests