autodl-projects/scripts/black.sh

20 lines
413 B
Bash
Raw Normal View History

2021-04-26 15:16:08 +02:00
#!/bin/bash
# bash ./scripts/black.sh
2021-05-19 07:13:11 +02:00
# script=$(readlink -f "$0")
# scriptpath=$(dirname "$script")
# echo $scriptpath
# delete Python cache files
2021-05-19 08:10:01 +02:00
find . | grep -E "(__pycache__|\.pyc|\.DS_Store|\.pyo$)" | xargs rm -rf
2021-05-19 07:13:11 +02:00
2021-04-26 15:16:08 +02:00
black ./tests/
2021-05-19 07:00:33 +02:00
black ./xautodl/procedures
black ./xautodl/datasets
black ./xautodl/xlayers
2021-04-26 15:16:08 +02:00
black ./exps/trading
2021-05-19 07:00:33 +02:00
rm -rf ./xautodl.egg-info
rm -rf ./build
rm -rf ./dist
rm -rf ./.pytest_cache