lint/clean
This commit is contained in:
parent
086222afd2
commit
bec792d29a
1 changed files with 14 additions and 0 deletions
|
@ -11,6 +11,20 @@ rwx_lint() {
|
||||||
done
|
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
|
# lint python code
|
||||||
rwx_lint_python() {
|
rwx_lint_python() {
|
||||||
local path="${1}"
|
local path="${1}"
|
||||||
|
|
Loading…
Reference in a new issue