Skip to content

chore: Add Ruff formatter - #229

Merged
mwien merged 3 commits into
mainfrom
add-ruff-formatter
Nov 25, 2026
Merged

mwien merged 3 commits into
mainfrom
add-ruff-formatter

Conversation

@mwien

@mwien mwien commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Context

Closes SAP/ai-sdk-python-backlog#77.

What this PR does and why it is needed

Introduces the Ruff formatter to the code base and formats all files to satisfy the format check. Concretely:

  • Ruff format check is added to CI, however the formatter is not run automatically, this needs to be handled by the dev
  • All files are formatted with Ruff
  • The option skip_magic_trailing_comma is set to true. When we introduce the linter, we need to set isort.split-on-trailing-comma=false to ensure everything is working correctly (there is currently a warning for this). Other options are so far left at their defaults. See a list of possible options here.

Definition of Done

  • Code is tested (Unit, Integration, E2E)
  • Error handling created / updated & covered by the tests above
  • Documentation updated
    • Only Public APIs are allowed to be used in documentation/tutorials/sample code
  • (Optional) Aligned changes with the JS/TS and Java SDK
  • (Optional) Release notes updated -->

@mwien
mwien marked this pull request as ready for review November 12, 2026 12:41
@mwien
mwien force-pushed the add-ruff-formatter branch from 63ee82e to 867f895 Compare November 25, 2026 08:13

@OscarDDD OscarDDD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mwien
mwien merged commit 8610042 into main Nov 25, 2026
23 of 26 checks passed
@mwien
mwien deleted the add-ruff-formatter branch November 25, 2026 09:01
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.

2 participants