forked from allenai/open-instruct
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (16 loc) · 629 Bytes
/
Makefile
File metadata and controls
22 lines (16 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: style quality
# make sure to test the local checkout in scripts and not the pre-installed one (don't use quotes!)
export PYTHONPATH = open_instruct
check_dirs := open_instruct *mason.py
style:
uv run ruff format $(check_dirs)
quality:
uv run ruff check -q --fix $(check_dirs)
uv run python -m compileall -qq $(check_dirs)
uv run ty check
style-check: ## *fail* if anything needs rewriting
uv run ruff format --check --diff $(check_dirs)
quality-check: ## *fail* if any rewrite was needed
uv run ruff check --exit-non-zero-on-fix $(check_dirs)
uv run ty check
uv run python -m compileall -qq $(check_dirs)