Files
open-instruct/Makefile
Costa HuangandGitHub f4140da028 Do autoflake (#227)
* let's not do line-length again

* fix ci

* quick fix

* update dependency
2024-08-08 21:33:53 -04:00

14 lines
493 B
Makefile

.PHONY: style quality
# make sure to test the local checkout in scripts and not the pre-installed one (don't use quotes!)
export PYTHONPATH = open_instruct
check_dirs := open_instruct
style:
python -m black --line-length 119 --target-version py310 $(check_dirs)
python -m isort $(check_dirs) --profile black
quality:
python -m autoflake -r --exclude=wandb --in-place --remove-unused-variables --remove-all-unused-imports $(check_dirs)
python -m flake8 --ignore E501,W503 $(check_dirs)