ruff/check
This commit is contained in:
parent
1bba63ac14
commit
007994bfea
1 changed files with 14 additions and 1 deletions
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue