ruff/check

This commit is contained in:
Marc Beninca 2025-01-31 23:03:03 +01:00
parent 1bba63ac14
commit 007994bfea
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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}"
}