black 381 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -e
  3. python_version=$(python --version)
  4. if [[ "$python_version" =~ "Python 3.5." ]]; then
  5. echo "Skipping black due to lack of support for $python_version."
  6. elif [[ "$python_version" =~ "Python 3.4." ]]; then
  7. echo "Skipping black due to lack of support for $python_version."
  8. else
  9. black --skip-string-normalization --line-length 100 --check .
  10. fi