run-pylint 446 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. cd "$(git rev-parse --show-toplevel)"
  4. # pylint3 was replaced with pylint from Ubuntu 19.10
  5. PYLINT=$(command -v pylint3)
  6. if [ -z "$PYLINT" ]; then
  7. PYLINT=$(command -v pylint)
  8. fi
  9. find . -name \*.py \
  10. -and -not -path ./LibOS/shim/test/apps/ltp/src/\* \
  11. | sed 's/./\\&/g' \
  12. | xargs "${PYLINT}" "$@" \
  13. Pal/src/host/Linux-SGX/signer/pal-sgx-get-token \
  14. Pal/src/host/Linux-SGX/signer/pal-sgx-sign \
  15. .ci/prfilter