mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-28 11:14:18 +08:00
Co-authored-by: frozenleaves <frozen@Mac.local> Co-authored-by: Yaowei Zheng <hiyouga@buaa.edu.cn>
25 lines
528 B
Makefile
25 lines
528 B
Makefile
.PHONY: build commit license quality style test
|
|
|
|
check_dirs := scripts src tests tests_v1 setup.py
|
|
|
|
build:
|
|
pip3 install build && python3 -m build
|
|
|
|
commit:
|
|
pre-commit install
|
|
pre-commit run --all-files
|
|
|
|
license:
|
|
python3 tests/check_license.py $(check_dirs)
|
|
|
|
quality:
|
|
ruff check $(check_dirs)
|
|
ruff format --check $(check_dirs)
|
|
|
|
style:
|
|
ruff check $(check_dirs) --fix
|
|
ruff format $(check_dirs)
|
|
|
|
test:
|
|
CUDA_VISIBLE_DEVICES= ASCEND_RT_VISIBLE_DEVICES=0 WANDB_DISABLED=true pytest -vv --import-mode=importlib tests/ tests_v1/
|