parent
44dc07d667
commit
173f842b9a
11 changed files with 29 additions and 29 deletions
|
@ -8,7 +8,7 @@ rwx_lint() {
|
|||
"python" \
|
||||
"shell"
|
||||
local code
|
||||
for code in "${@}"; do
|
||||
for code; do
|
||||
rwx_log "" "${code}"
|
||||
"rwx_lint_${code}" "${path}"
|
||||
done
|
||||
|
@ -25,7 +25,7 @@ rwx_lint_clean() {
|
|||
"mypy" \
|
||||
"ruff"
|
||||
local tool
|
||||
for tool in "${@}"; do
|
||||
for tool; do
|
||||
rwx_remove "${path}/.${tool}_cache"
|
||||
done
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ rwx_lint_python() {
|
|||
"pydoclint" \
|
||||
"mypy" \
|
||||
"ruff"
|
||||
for action in "${@}"; do
|
||||
for action; do
|
||||
rwx_log "" "${action}"
|
||||
"rwx_${action}" "${path}"
|
||||
done
|
||||
|
@ -52,7 +52,7 @@ rwx_lint_shell() {
|
|||
set \
|
||||
"shellcheck" \
|
||||
"shfmt"
|
||||
for action in "${@}"; do
|
||||
for action; do
|
||||
rwx_log "" "${action}"
|
||||
"rwx_${action}" "${path}"
|
||||
done
|
||||
|
@ -66,7 +66,7 @@ rwx_lint_tasks() {
|
|||
"LATER" \
|
||||
"TODO" \
|
||||
"FIXME"
|
||||
for type in "${@}"; do
|
||||
for type; do
|
||||
rwx_log "" "${type}"
|
||||
grep \
|
||||
--after "1" \
|
||||
|
|
|
@ -4,7 +4,7 @@ rwx_ruff() {
|
|||
set \
|
||||
"check" \
|
||||
"format"
|
||||
for action in "${@}"; do
|
||||
for action; do
|
||||
"rwx_ruff_${action}" "${path}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue