diff --git a/sh/lint/ruff.sh b/sh/lint/ruff.sh index 89757f2..8874cab 100644 --- a/sh/lint/ruff.sh +++ b/sh/lint/ruff.sh @@ -1,6 +1,19 @@ rwx_ruff() { local path="${1}" - rwx_ruff_format \ + local action + set \ + "check" \ + "format" + for action in "${@}"; do + "rwx_ruff_${action}" "${path}" + done +} + +rwx_ruff_check() { + local path="${1}" + ruff check \ + --select "ALL" \ + --ignore "D203,D213" \ "${path}" }