Makefile 391 Bytes
Newer Older
luopl's avatar
luopl committed
1
.PHONY: build commit quality style test
Rayyyyy's avatar
V0.6.3  
Rayyyyy committed
2

luopl's avatar
luopl committed
3
check_dirs := scripts src tests setup.py
Rayyyyy's avatar
V0.6.3  
Rayyyyy committed
4

luopl's avatar
luopl committed
5
6
7
8
9
10
11
build:
	pip install build && python -m build

commit:
	pre-commit install
	pre-commit run --all-files

Rayyyyy's avatar
V0.6.3  
Rayyyyy committed
12
13
14
15
16
17
18
quality:
	ruff check $(check_dirs)
	ruff format --check $(check_dirs)

style:
	ruff check $(check_dirs) --fix
	ruff format $(check_dirs)
chenych's avatar
chenych committed
19
20

test:
luopl's avatar
luopl committed
21
	CUDA_VISIBLE_DEVICES= WANDB_DISABLED=true pytest -vv tests/