nix-direnv/run-tests.nix
Jörg Thalheim bd05959143
run-tests: drop broken shell escapes
There are not shown properly in github actions, so let's not bother.
2022-06-01 08:22:53 +02:00

22 lines
464 B
Nix

{
writeScript,
shellcheck,
direnv,
mypy,
python3,
}:
writeScript "run-tests" ''
set -e
PATH="''${PATH}''${PATH:+":"}${direnv}/bin"
echo run shellcheck
${shellcheck}/bin/shellcheck direnvrc
echo run black
LC_ALL=en_US.utf-8 ${python3.pkgs.black}/bin/black --check .
echo run flake8
${python3.pkgs.flake8}/bin/flake8 --ignore E501 tests
echo run mypy
${mypy}/bin/mypy tests
echo run unittest
${python3.pkgs.pytest}/bin/pytest .
''