rwx/sh/lint/python.sh

17 lines
263 B
Bash
Raw Normal View History

2025-01-31 17:31:24 +00:00
# lint python code
rwx_python_lint() {
local path="${1}"
2025-01-31 22:28:06 +00:00
# pylint
rwx_log "pylint"
rwx_pylint "${path}"
2025-01-31 17:31:24 +00:00
# check pydoc
rwx_log "pydoc"
2025-01-31 17:42:58 +00:00
rwx_pydoclint "${path}"
2025-01-31 17:31:24 +00:00
# check typing
rwx_log "mypy"
2025-01-31 17:42:58 +00:00
rwx_mypy "${path}"
# ruff
rwx_log "ruff"
rwx_ruff "${path}"
2025-01-31 17:31:24 +00:00
}