LLaMA-Factory-310P3/Makefile

15 lines
251 B
Makefile
Raw Permalink Normal View History

2024-06-08 01:48:30 +08:00
.PHONY: quality style test
2024-01-20 19:58:04 +08:00
2024-08-27 12:55:23 +08:00
check_dirs := scripts src tests setup.py
2024-01-20 19:58:04 +08:00
quality:
2024-03-06 14:51:51 +08:00
ruff check $(check_dirs)
2024-02-26 17:25:47 +08:00
ruff format --check $(check_dirs)
2024-01-20 19:58:04 +08:00
style:
2024-03-06 14:51:51 +08:00
ruff check $(check_dirs) --fix
2024-02-26 17:25:47 +08:00
ruff format $(check_dirs)
2024-06-08 01:48:30 +08:00
test:
2024-06-15 19:51:20 +08:00
CUDA_VISIBLE_DEVICES= pytest tests/