🐛 add missing clean_pyc function

This commit is contained in:
Ondřej Samohel 2025-03-21 17:29:03 +01:00
parent 2c832ffc13
commit 8965252108
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -164,6 +164,15 @@ default_help() {
echo ""
}
clean_pyc () {
local path
path=$repo_root
echo -e "${BIGreen}>>>${RST} Cleaning pyc at [ ${BIWhite}$path${RST} ] ... \c"
find "$path" -path ./build -o -regex '^.*\(__pycache__\|\.py[co]\)$' -delete
echo -e "${BIGreen}DONE${RST}"
}
run_ruff () {
echo -e "${BIGreen}>>>${RST} Running Ruff check ..."
"$POETRY_HOME/bin/poetry" run ruff check