This directory contains both developer-facing and tool-facing scripts.
Developer-facing:
-
install_test_dependencies.shinstalls dependencies of TFP (but not TFP itself) usingpip, including packages that are only needed for TFP's test suite. This is also indirectly used by tools. -
run_tfp_test.shwraps abazelincantation to run one or a set of TFP tests in a virtualenv. This is also indirectly used by tools. -
run_tfp_lints.shwraps apylintincantation usingpylintrc(also here). This is also indirectly used by tools. -
define_linting_alias.shanddefine_testing_alias.shcan be added to a developer's.bashrcfile to aliasrun_tfp_lints.sh andrun_tfp_test.sh`, respectively. -
fresh_tfp_virtualenv.shwrapsinstall_test_dependencies.shto automate creating and entering a fresh virtualenv every time.
Tool-facing:
-
run_github_tests.shis the entry point for the testing Github Action. -
run_github_lints.shis the entry point for the linting Github Action.
Support:
-
pylintrcis our Pylint configuration (referenced byrun_tfp_lints.sh). -
dependency_install_lib.shis a bunch of bash functions used byinstall_test_dependencies.sh. -
virtualenv_is_active.pyis a Python script to detect whether we are already in a virtualenv or not.