refactor(history): commit development branch
All checks were successful
/ job (push) Successful in 1m12s
All checks were successful
/ job (push) Successful in 1m12s
new development branch from root commit
This commit is contained in:
parent
3e562930f6
commit
020aaa0b9a
94 changed files with 4804 additions and 0 deletions
28
sh/lint/ruff.sh
Normal file
28
sh/lint/ruff.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
rwx_ruff() {
|
||||
local path="${1}"
|
||||
local action
|
||||
set \
|
||||
"check" \
|
||||
"format"
|
||||
for action in "${@}"; 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}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue