[PR #1983] improve: introduce isort for linting Python imports #23353

Closed
opened 2026-02-21 20:20:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/1983

State: closed
Merged: Yes


  • introduce isort (https://pycqa.github.io/isort/index.html) for linting the Python imports
  • provide dev/reformat script for one-key fixing Python import styles with isort
  • the isort package is treated as dev dependency and not added to requirements.txt as runtime dependency
  • apply isort checks via superlinter in style workflow
  • put the commit id of applying isort fixes into .git-blame-ignore-revs, so that git blame and github ignores this changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/1983 **State:** closed **Merged:** Yes --- - introduce `isort` (https://pycqa.github.io/isort/index.html) for linting the Python imports - provide `dev/reformat` script for one-key fixing Python import styles with `isort` - the isort package is treated as dev dependency and not added to `requirements.txt` as runtime dependency - ~~apply `isort` checks via superlinter in style workflow~~ - put the commit id of applying isort fixes into `.git-blame-ignore-revs`, so that git blame and github ignores this changes
yindo added the pull-request label 2026-02-21 20:20:55 -05:00
yindo closed this issue 2026-02-21 20:20:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23353