rwx/sh/lint/python.sh
2025-01-31 23:28:06 +01:00

16 lines
263 B
Bash

# lint python code
rwx_python_lint() {
local path="${1}"
# pylint
rwx_log "pylint"
rwx_pylint "${path}"
# check pydoc
rwx_log "pydoc"
rwx_pydoclint "${path}"
# check typing
rwx_log "mypy"
rwx_mypy "${path}"
# ruff
rwx_log "ruff"
rwx_ruff "${path}"
}