From 98aff4baa89db97efb3f007ee964c34c8847310f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 31 Jan 2025 23:31:44 +0100 Subject: [PATCH] python/lint --- sh/lint/python.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/sh/lint/python.sh b/sh/lint/python.sh index 7e8abdf..bdee7bc 100644 --- a/sh/lint/python.sh +++ b/sh/lint/python.sh @@ -1,16 +1,14 @@ # 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}" + local action + set \ + "pylint" \ + "pydoclint" \ + "mypy" \ + "ruff" + for action in "${@}"; do + rwx_log "${action}" + "rwx_${action}" "${path}" + done }