Xqt added subscribers: JJMC89, Xqt.
Xqt added a comment.

  @JJMC89 : Could you explain your vote?
  
  @Mahveotm: isort has some bad qualities:
  
  - it fails if the module docstring starts with preleading `r`
  - it does not always preserve the import section if module docstring is 
followed by comments (T416673 <https://phabricator.wikimedia.org/T416673>)
  
  Does the Ruff's isort linter solve these issues?
  
  My 2 cents:
  
  **Pros of isort:**
  
  - separate test distingued from ruff-check; it can be run separately with: 
`pre-commit run isort -a`
  
  **Pros of ruff:**
  
  - detects `tomllib` as separate package,
  - sorts also within `try:/except` statements
  - group non-aliased imports from the same module

TASK DETAIL
  https://phabricator.wikimedia.org/T434949

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to