Project Scripts
The scripts directory contains scripts that can be used for various common project actions. These scripts are intended to be run from the project root directory.
Run Script
scripts/run.sh
The run.sh
script is the main entry point for running project scripts, however, the scripts in the actions
directory can also be run directly if desired.
Options
The run.sh
script provides a quick way to run various project actions. The following options are available:
-h
,--help
: show help message and exittest
: run tests with coveragesecurity
: check for security issueslint
: lint the codeformat
: format codeinstall
: install dependenciessetup-hooks
: setup pre-commit hookspre-commit
: run pre-commit hooks
Usage
Interactive
The run.sh
script can also be run in interactive mode. To do this, simply run the script without any options:
bash scripts/run.sh
This will prompt you to select an action to run.
Non-Interactive
To run a specific action without being prompted, you can pass the action as an option:
bash scripts/run.sh [OPTION] [FLAGS]
For example, to run tests with coverage:
bash scripts/run.sh test