rwx/sh/lint/python.sh

14 lines
213 B
Bash
Raw Normal View History

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