You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpustack/hack/lint.sh

24 lines
400 B

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${ROOT_DIR}/hack/lib/init.sh"
function lint() {
local path="$1"
gpustack::log::info "linting ${path}"
pre-commit run --all-files --show-diff-on-failure
}
#
# main
#
gpustack::log::info "+++ LINT +++"
lint "gpustack"
gpustack::log::info "--- LINT ---"