forked from RonaldHensbergen/composable-data-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (44 loc) · 1.62 KB
/
Copy pathMakefile
File metadata and controls
58 lines (44 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: install validate validate-profile package lint lint-markdown lint-yaml lint-deprecated lint-renovate docker-build test check
PROFILE ?= profiles/local-dagster-postgres-superset/profile.yaml
install:
pip install -e .
lint: lint-markdown lint-yaml lint-deprecated lint-renovate
test:
# Only fail repo-owned deprecations so third-party library warnings do not
# break the suite. This must be done via warnings.filterwarnings() in
# Python code, not the PYTHONWARNINGS env var: CPython's -W/PYTHONWARNINGS
# parser always re.escape()s the module field, so it cannot express
# "starts with" scoping (see scripts/run_tests_with_deprecation_gate.py).
python scripts/run_tests_with_deprecation_gate.py
check: lint test
lint-markdown:
npx --yes markdownlint-cli@0.49.0 "**/*.md" ".github/**/*.md"
lint-yaml:
yamllint .
lint-deprecated:
ruff check .
lint-renovate:
npx --yes --package renovate -- renovate-config-validator --strict renovate.json
validate:
cds validate $(PROFILE)
validate-profile:
@if [ -z "$(P)" ]; then \
echo "Usage: make validate-profile P=profiles/.../profile.yaml"; \
exit 1; \
fi
cds validate $(P)
package:
python3 -m pip install --upgrade build
python3 -m build
docker-build:
@echo "Building all Dockerfiles..."
@for dockerfile in $$(find . -name "Dockerfile*" -type f); do \
dir=$$(dirname "$$dockerfile"); \
echo "Building $$dockerfile in directory $$dir..."; \
context="$$dir"; \
case "$$dockerfile" in \
./images/dagster/*|./images/superset/*) context="." ;; \
esac; \
docker build -f "$$dockerfile" "$$context" || exit 1; \
done
@echo "All Dockerfiles built successfully!"