Run:
pip install pre-commit
Then, in the repository fonder run:
pre-commit install
Get the API Key and add it to the envorinment using the following command:
export OPENAI_API_KEY="<API_KEY>"