python/ruff
This commit is contained in:
parent
5a89616f5c
commit
e4178bda5d
2 changed files with 18 additions and 2 deletions
|
@ -3,8 +3,11 @@ rwx_python_lint() {
|
|||
local path="${1}"
|
||||
# check pydoc
|
||||
rwx_log "pydoc"
|
||||
pydoclint "${path}"
|
||||
rwx_pydoclint "${path}"
|
||||
# check typing
|
||||
rwx_log "mypy"
|
||||
mypy "${path}"
|
||||
rwx_mypy "${path}"
|
||||
# ruff
|
||||
rwx_log "ruff"
|
||||
rwx_ruff "${path}"
|
||||
}
|
||||
|
|
13
sh/lint/ruff.sh
Normal file
13
sh/lint/ruff.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
rwx_ruff() {
|
||||
local path="${1}"
|
||||
rwx_ruff_format \
|
||||
"${path}"
|
||||
}
|
||||
|
||||
rwx_ruff_format() {
|
||||
local path="${1}"
|
||||
ruff format \
|
||||
--diff \
|
||||
--line-length 80 \
|
||||
"${path}"
|
||||
}
|
Loading…
Reference in a new issue