Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isort orders module-level dunders #2060

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

clavedeluna
Copy link

Closes #1980

This PR adds functionality for isort to order any module-level dunders including multi-line dunder assignments.

@codecov
Copy link

codecov bot commented Jan 15, 2023

Codecov Report

Merging #2060 (ec6c997) into main (03a9949) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head ec6c997 differs from pull request most recent head 2b5dea3. Consider uploading reports for the commit 2b5dea3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2060      +/-   ##
==========================================
+ Coverage   98.80%   98.81%   +0.01%     
==========================================
  Files          38       38              
  Lines        3085     3118      +33     
  Branches      745      755      +10     
==========================================
+ Hits         3048     3081      +33     
  Misses         26       26              
  Partials       11       11              

Copy link
Collaborator

@staticdev staticdev left a comment

Choose a reason for hiding this comment

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

@clavedeluna thanks for the contribution! Could you please check the linting errors?

@clavedeluna clavedeluna force-pushed the 1980-dunder-imports branch 2 times, most recently from ea33a3e to 359e2e3 Compare January 18, 2023 13:37
@clavedeluna
Copy link
Author

This PR is currently blocked until this question #1980 (comment) is answered / resolved

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.

New feature: isort should move module-level-dunders to the correct place
2 participants