pre-commit 331 B

1234567891011121314151617
  1. #!/bin/sh
  2. if ! git diff --quiet --exit-code; then
  3. git status
  4. echo
  5. echo unstaged changes
  6. exit 1
  7. fi
  8. set -ex
  9. pipenv clean
  10. pipenv sync --dev
  11. pipenv run black --check
  12. pipenv run pylint yamily tests/*
  13. pipenv run pytest --cov=yamily --cov-report=term-missing --cov-fail-under=100
  14. pipenv run python -m doctest README.md