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

fix multi_line_output_modes docs #2096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

xinydev
Copy link

@xinydev xinydev commented Feb 15, 2023

  • There should not be a comma after the last import in the Vertical Hanging Indent format.
  • Removing extra spaces.

The reason why I noticed this error is that I was using both isort and black, which can cause conflicts. The last import in the code formatted by black has a comma. After consulting the documentation, I found that the configuration for isort's Vertical Hanging Indent is the same as the code formatted by black. However, after configuring isort with Vertical Hanging Indent, I found that there was still a conflict between the two tools. Finally, I discovered that the isort documentation contained this error, and the last import should not have a comma.
I ultimately resolved the compatibility issue by using profile="black", but I do think that the error in the documentation should be fixed. Some people may encounter the same issue as me and be misled by the extraneous comma in the final import statement.

- There should not be a comma after the last import in the Vertical
Hanging Indent format.
- Removing extra spaces.

Signed-off-by: Xin Yang <xinydev@gmail.com>
@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #2096 (8a61d1e) into main (78a2d8c) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2096   +/-   ##
=======================================
  Coverage   99.22%   99.22%           
=======================================
  Files          38       38           
  Lines        3087     3087           
  Branches      747      747           
=======================================
  Hits         3063     3063           
  Misses         14       14           
  Partials       10       10           

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.

1 participant