linter.sh 344 B

12345678910111213141516
  1. #!/bin/bash -e
  2. # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. # Run this script at project root by ".linter.sh" before you commit.
  4. echo "Running isort..."
  5. isort -y -sp .
  6. echo "Running black..."
  7. black -l 80 .
  8. echo "Running flake..."
  9. flake8 .
  10. command -v arc > /dev/null && {
  11. echo "Running arc lint ..."
  12. arc lint
  13. }