-
-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve formatting of long "via" annotations
When there is more than one "via" annotation, they are now formatted one per line. This prevents very long lines in requirements.txt output. The very long lines often scroll beyond the width of an editor, making them difficult to read. Worse, when these annotations change, diffs are hard to read as the actual difference is hidden far off to the right. By placing one annotation per line, diffs will be much more obvious. This follows the philosophy of many automatic formatters such as Black. To simplify the formatting and to make it more consistent, annotations are now always on the line after the requirement, whether hashes were generated or not. Fixes #1036
- Loading branch information
Showing
4 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters