Skip to content

Added a pre-commit config file and reformatted all the files accordingly using it - #532

Closed
Sai-Suraj-27 wants to merge 3 commits into
openai:mainfrom
Sai-Suraj-27:pre-commit/setup
Closed

Sai-Suraj-27 wants to merge 3 commits into
openai:mainfrom
Sai-Suraj-27:pre-commit/setup

Conversation

@Sai-Suraj-27

Copy link
Copy Markdown

Description

Added a basic pre-commit configuration file (.pre-commit-config.yaml ) to the codebase as it helps improve the code quality and maintain consistency within the project. It will allow all the developers/future contributors to maintain a consistent code style. Many other repositories of openai are also already using a .pre-commit-config.yaml. Refactored some code to make it more readable and clean. For example: In many places, an f-string could have been used but it was not used, So I used f-strings in those places. In some places, if conditions could be merged but they were not, So, I merged them.

Type of change

Added the following pre-commit hooks

  1. trailing-whitespace (Removes trailing whitespace at the end of lines)
  2. end-of-file-fixer (Ensures that files end with a newline character)
  3. check-yaml (Validates YAML files for syntax errors and potential issues)
  4. black (code formatter that automatically applies a consistent code style to your Python code).

@Sai-Suraj-27

Copy link
Copy Markdown
Author

@athyuttamre sir, can you please review the PR once?

@Sai-Suraj-27 Sai-Suraj-27 closed this by deleting the head repository Aug 25, 2023
safa0 pushed a commit to safa0/openai-agents-python that referenced this pull request Apr 27, 2025
litellm is a library that abstracts away details/differences for a lot
of model providers. Adding an extension, so that any provider can easily
be integrated.

---
[//]: # (BEGIN SAPLING FOOTER)
* openai#532
* __->__ openai#524
safa0 pushed a commit to safa0/openai-agents-python that referenced this pull request Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant