Sync profile docs with implementation#2495
Merged
DanielNoord merged 3 commits intomainfrom Mar 14, 2026
Merged
Conversation
Co-authored-by: DanielNoord <13665637+DanielNoord@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix docs about profiles not in sync with implementation
Sync profile docs with implementation via build_profile_docs.py
Mar 14, 2026
DanielNoord
reviewed
Mar 14, 2026
Comment on lines
55
to
65
|
|
||
| Based on black with these tweaks: | ||
|
|
||
| - **multi_line_output**: `3` | ||
| - **include_trailing_comma**: `True` | ||
| - **split_on_trailing_comma**: `True` | ||
| - **force_grid_wrap**: `0` | ||
| - **use_parentheses**: `True` | ||
| - **ensure_newline_before_comments**: `True` | ||
| - **line_length**: `88` | ||
| - **force_alphabetical_sort**: `True` | ||
| - **force_single_line**: `True` |
Contributor
Author
There was a problem hiding this comment.
Done in c9f6cea — the plone section is reverted to the original "Based on black with these tweaks:" description showing only the 2 plone-specific settings.
Co-authored-by: DanielNoord <13665637+DanielNoord@users.noreply.github.com>
Copilot
AI
changed the title
Sync profile docs with implementation via build_profile_docs.py
Sync profile docs with implementation
Mar 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2495 +/- ##
=======================================
Coverage 99.16% 99.16%
=======================================
Files 40 40
Lines 3096 3096
Branches 674 674
=======================================
Hits 3070 3070
Misses 14 14
Partials 12 12 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
docs/configuration/profiles.mdhad drifted from the actual profile definitions inisort/profiles.py.What changed in the docs
line_length: 1000and had a truncatedsingle_line_exclusions: ('typing',)instead of the full('collections.abc', 'six.moves', 'typing', 'typing_extensions')split_on_trailing_comma: True(inherited fromblackvia**blackunpacking)force_alphabetical_sortandforce_single_line)split_on_trailing_comma: Truewas already present in the implementationOriginal prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.