mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #23902] feat: Update backend code to respect ruff linting rules configured in pyproject.toml #35631
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Samreay on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23902
Check Existing Issues
Verify Feature Scope
Problem Description
In https://github.com/open-webui/open-webui/discussions/22462 and https://github.com/open-webui/open-webui/pull/22576, the ruff formatter and linter was added to openwebui. However, only the formatter has been run, and the ruff linting raises numerous errors. The backend-lint workflow step is also disabled.
There is a pre-commit step with ruff fixing backend lint errors, but it doesnt seem to have been run (reports hundreds of error).
Would you be open to a PR which lints the code base?
Desired Solution you'd like
Someone saying "Sure, lint away!" so I dont create a large PR that doesnt go anywhere haha
Alternatives Considered
No response
Additional Context
No response
@pr-validator-bot commented on GitHub (Apr 21, 2026):
⚠️ Invalid Issue Title
Hey @Samreay, please provide a descriptive title for your issue. Titles that are empty, very short (under 10 characters), or generic (like "issue:" or "feat:") make it difficult for volunteer contributors to understand and triage issues.
Please update the title to reflect the content of your issue.
⚠️ Missing Issue Title Prefix
@Samreay, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@tjbck commented on GitHub (Apr 21, 2026):
Not a priority, we may eventually get to it.
@Samreay commented on GitHub (Apr 21, 2026):
Right, that's why I was asking if you wanted me to do it and provide a PR on it, so it didn't have to shift development priorities. But if its not wanted / disruptive, all good. It might be good to remove the rules and precommit config then, because it means people setting up the repo for the first time get hit with thousands of errors in pre commit