mirror of
https://github.com/wassname/peft.git
synced 2026-09-09 11:28:32 +08:00
chore: update Makefile with ruff commands
This commit is contained in:
@@ -7,13 +7,12 @@ check_dirs := src tests examples
|
||||
# this target runs checks on all files
|
||||
quality:
|
||||
black --check $(check_dirs)
|
||||
isort --check-only $(check_dirs)
|
||||
flake8 $(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)
|
||||
isort $(check_dirs)
|
||||
ruff $(check_dirs) --fix
|
||||
doc-builder style src tests --max_len 119
|
||||
|
||||
Reference in New Issue
Block a user