rwx/sh/lint/ruff.sh
Marc Beninca 173f842b9a
All checks were successful
/ job (push) Successful in 2m54s
for/in
2025-08-02 10:05:13 +02:00

28 lines
377 B
Bash

rwx_ruff() {
local path="${1}"
local action
set \
"check" \
"format"
for action; do
"rwx_ruff_${action}" "${path}"
done
}
rwx_ruff_check() {
local path="${1}"
ruff check \
--ignore "D203,D213" \
--isolated \
--select "ALL" \
"${path}"
}
rwx_ruff_format() {
local path="${1}"
ruff format \
--diff \
--isolated \
--line-length "80" \
"${path}"
}