python/lint
This commit is contained in:
parent
0d5d3aa5ba
commit
98aff4baa8
1 changed files with 10 additions and 12 deletions
|
@ -1,16 +1,14 @@
|
||||||
# lint python code
|
# lint python code
|
||||||
rwx_python_lint() {
|
rwx_python_lint() {
|
||||||
local path="${1}"
|
local path="${1}"
|
||||||
# pylint
|
local action
|
||||||
rwx_log "pylint"
|
set \
|
||||||
rwx_pylint "${path}"
|
"pylint" \
|
||||||
# check pydoc
|
"pydoclint" \
|
||||||
rwx_log "pydoc"
|
"mypy" \
|
||||||
rwx_pydoclint "${path}"
|
"ruff"
|
||||||
# check typing
|
for action in "${@}"; do
|
||||||
rwx_log "mypy"
|
rwx_log "${action}"
|
||||||
rwx_mypy "${path}"
|
"rwx_${action}" "${path}"
|
||||||
# ruff
|
done
|
||||||
rwx_log "ruff"
|
|
||||||
rwx_ruff "${path}"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue