forked from openvla/openvla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 661 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: help clean check autoformat
.DEFAULT: help
# Generates a useful overview/help message for various make features - add to this as necessary!
help:
@echo "make clean"
@echo " Remove all temporary pyc/pycache files"
@echo "make check"
@echo " Run code style and linting (black, ruff) *without* changing files!"
@echo "make autoformat"
@echo " Run code styling (black, ruff) and update in place - committing with pre-commit also does this."
clean:
find . -name "*.pyc" | xargs rm -f && \
find . -name "__pycache__" | xargs rm -rf
check:
black --check .
ruff check --show-source .
autoformat:
black .
ruff check --fix --show-fixes .