mirror of
https://github.com/wassname/peft.git
synced 2026-09-22 13:20:10 +08:00
* add ci tests * fix some tests * fix tests * rename * fix * update tests * try * temp hotfix * refactor tests * Update .github/workflows/tests.yml * fix test
20 lines
489 B
Makefile
20 lines
489 B
Makefile
.PHONY: quality style test docs
|
|
|
|
check_dirs := src tests examples
|
|
|
|
# Check that source code meets quality standards
|
|
|
|
# this target runs checks on all files
|
|
quality:
|
|
black --check $(check_dirs)
|
|
ruff $(check_dirs)
|
|
doc-builder style src tests --max_len 119 --check_only
|
|
|
|
# Format source code automatically and check is there are any problems left that need manual fixing
|
|
style:
|
|
black $(check_dirs)
|
|
ruff $(check_dirs) --fix
|
|
doc-builder style src tests --max_len 119
|
|
|
|
test:
|
|
pytest tests/
|