openai-cookbook
openai-cookbook copied to clipboard
[FEATURE] Consider linting or formatting notebooks
I've opened a couple pull requests now resolving syntax errors in notebooks (#1036, #964)
It seems like you should have at least a simple check in CI that notebooks are valid. If you add formatting to CI, you'll get automatic checks for syntax errors and consistent notebook formatting. Alternatively, you use a linter without enabling anything more than syntax errors.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.
👋 hi bot. I believe this is still relevant.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.
@shyamal-anadkat would you be willing to consider this or similar? We'd really like to continue using this repository to help verify that changes to our behavior with notebooks is correct, but there are constantly notebooks with syntax errors:
error: Failed to parse examples/Chat_finetuning_data_prep.ipynb:6:18:25: Unparenthesized generator expression cannot be used here
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_confluence.ipynb:15:1:5: Simple statements must be separated by newlines or semicolons
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_gmail.ipynb:15:1:1: Expected an expression
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_jira.ipynb:15:1:1: Expected an expression
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_notion.ipynb:15:1:1: Expected an expression
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_sharepoint_doc.ipynb:28:1:5: Simple statements must be separated by newlines or semicolons
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_sharepoint_text.ipynb:28:1:5: Simple statements must be separated by newlines or semicolons
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_action_sql_database.ipynb:2:2:5: Simple statements must be separated by newlines or semicolons
error: Failed to parse examples/chatgpt/gpt_actions_library/gpt_middleware_azure_function.ipynb:37:1:13: Simple statements must be separated by newlines or semicolons