|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +set -e |
| 4 | + |
| 5 | +# Optional: Import test library |
| 6 | +source dev-container-features-test-lib |
| 7 | + |
| 8 | +check "python version 3.12 installed as default" bash -c "python --version | grep 3.12" |
| 9 | +check "python3 version 3.12 installed as default" bash -c "python3 --version | grep 3.12" |
| 10 | + |
| 11 | +# Check that tools can execute - make sure something didn't get messed up in this scenario |
| 12 | +check "autopep8" autopep8 --version |
| 13 | +check "black" black --version |
| 14 | +check "yapf" yapf --version |
| 15 | +check "bandit" bandit --version |
| 16 | +check "flake8" flake8 --version |
| 17 | +check "mypy" mypy --version |
| 18 | +check "pycodestyle" pycodestyle --version |
| 19 | +check "pydocstyle" pydocstyle --version |
| 20 | +check "pylint" pylint --version |
| 21 | +check "pytest" pytest --version |
| 22 | + |
| 23 | +# Check paths in settings |
| 24 | +check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python" |
| 25 | +check "current symlink works" /usr/local/python/current/bin/python --version |
| 26 | +check "which autopep8" bash -c "which autopep8 | grep /usr/local/py-utils/bin/autopep8" |
| 27 | +check "which black" bash -c "which black | grep /usr/local/py-utils/bin/black" |
| 28 | +check "which yapf" bash -c "which yapf | grep /usr/local/py-utils/bin/yapf" |
| 29 | +check "which bandit" bash -c "which bandit | grep /usr/local/py-utils/bin/bandit" |
| 30 | +check "which flake8" bash -c "which flake8 | grep /usr/local/py-utils/bin/flake8" |
| 31 | +check "which mypy" bash -c "which mypy | grep /usr/local/py-utils/bin/mypy" |
| 32 | +check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/bin/pycodestyle" |
| 33 | +check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle" |
| 34 | +check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint" |
| 35 | +check "which pytest" bash -c "which pytest | grep /usr/local/py-utils/bin/pytest" |
| 36 | + |
| 37 | +# Report result |
| 38 | +reportResults |
0 commit comments