lint/clean

This commit is contained in:
Marc Beninca 2025-02-01 01:18:13 +01:00
parent 086222afd2
commit bec792d29a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -11,6 +11,20 @@ rwx_lint() {
done
}
# clean
rwx_lint_clean() {
local path="${1}"
[ -n "${path}" ] || exit 1
local tool
set \
"mypy" \
"ruff"
for tool in "${@}"; do
rwx_log "${tool}"
rwx_remove "${path}/.${tool}_cache"
done
}
# lint python code
rwx_lint_python() {
local path="${1}"