forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
90 lines (66 loc) · 2.89 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.PHONY: pyright
# Makefile oddities:
# - Commands must start with literal tab characters (\t), not spaces.
# - Multi-command rules (like `ruff` below) by default terminate as soon as a command has a non-0
# exit status. Prefix the command with "-" to instruct make to continue to the next command
# regardless of the preceding command's exit status.
pyright:
python scripts/run-pyright.py --all
install_prettier:
npm install -g prettier
install_pyright:
pip install -e 'python_modules/dagster[pyright]' -e 'python_modules/dagster-pipes'
rebuild_pyright:
python scripts/run-pyright.py --all --rebuild
# Skip typecheck so that this can be used to test if all requirements can successfully be resolved
# in CI independently of typechecking.
rebuild_pyright_pins:
python scripts/run-pyright.py --update-pins --skip-typecheck
quick_pyright:
python scripts/run-pyright.py --diff
unannotated_pyright:
python scripts/run-pyright.py --unannotated
ruff:
-ruff check --fix .
ruff format .
check_ruff:
ruff check .
ruff format --check .
check_prettier:
#NOTE: excludes README.md because it's a symlink
prettier `git ls-files \
'python_modules/*.yml' 'python_modules/*.yaml' 'helm/*.yml' 'helm/*.yaml' \
':!:helm/**/templates/*.yml' ':!:helm/**/templates/*.yaml' '*.md' ':!:docs/*.md' \
':!:README.md'` --check
prettier:
prettier `git ls-files \
'python_modules/*.yml' 'python_modules/*.yaml' 'helm/*.yml' 'helm/*.yaml' \
':!:helm/**/templates/*.yml' ':!:helm/**/templates/*.yaml' '*.md' ':!:docs/*.md' \
':!:README.md'` --write
install_dev_python_modules:
python scripts/install_dev_python_modules.py -qqq
install_dev_python_modules_verbose:
python scripts/install_dev_python_modules.py
install_dev_python_modules_verbose_m1:
python scripts/install_dev_python_modules.py -qqq --include-prebuilt-grpcio-wheel
graphql:
cd js_modules/dagster-ui/; make generate-graphql; make generate-perms
sanity_check:
#NOTE: fails on nonPOSIX-compliant shells (e.g. CMD, powershell)
#NOTE: dagster-hex is an external package
@echo Checking for prod installs - if any are listed below reinstall with 'pip -e'
@! (pip list --exclude-editable | grep -e dagster | grep -v dagster-hex | grep -v dagster-hightouch)
rebuild_ui: sanity_check
cd js_modules/dagster-ui/; yarn install && yarn build
rebuild_ui_with_profiling: sanity_check
cd js_modules/dagster-ui/; yarn install && yarn build-with-profiling
dev_install_m1_grpcio_wheel: install_dev_python_modules_verbose_m1 rebuild_ui
dev_install: install_dev_python_modules_verbose rebuild_ui
dev_install_quiet: install_dev_python_modules rebuild_ui
graphql_tests:
pytest python_modules/dagster-graphql/dagster_graphql_tests/graphql/ -s -vv
check_manifest:
check-manifest python_modules/dagster
check-manifest python_modules/dagster-webserver
check-manifest python_modules/dagster-graphql
ls python_modules/libraries | xargs -n 1 -Ipkg check-manifest python_modules/libraries/pkg