Makefile 457 Bytes
Newer Older
chenych's avatar
chenych committed
1
.PHONY: build commit license 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
build:
chenych's avatar
chenych committed
6
	pip3 install build && python3 -m build
luopl's avatar
luopl committed
7
8
9
10
11

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

chenych's avatar
chenych committed
12
13
14
license:
	python3 tests/check_license.py $(check_dirs)

Rayyyyy's avatar
V0.6.3  
Rayyyyy committed
15
16
17
18
19
20
21
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
22
23

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