Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/
### Unreleased

- Removed `--old-finders` and `--magic-placement` flags and `old_finders` configuration option. The legacy finder logic that relied on environment introspection has been removed (#2445) @joao-faria-dev
- Update the `plone` profile to not clash with `black` (#2456) @ale-rt

### 6.1.0 October 1 2025

Expand Down
3 changes: 1 addition & 2 deletions docs/configuration/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ To use any of the listed profiles, use `isort --profile PROFILE_NAME` from the c

#plone

Based on black with these tweaks:

- **force_alphabetical_sort**: `True`
- **force_single_line**: `True`
- **lines_after_imports**: `2`
- **line_length**: `200`
Copy link
Contributor Author

Choose a reason for hiding this comment

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


#attrs

Expand Down
1 change: 0 additions & 1 deletion isort/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
{
"force_alphabetical_sort": True,
"force_single_line": True,
"lines_after_imports": 2,
}
)
attrs = {
Expand Down
35 changes: 32 additions & 3 deletions tests/unit/profiles/test_plone.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def test_plone_code_snippet_one():

import plone.app.multilingualindexes


PAMI_FIXTURE = PloneWithPackageLayer(
bases=(PLONE_APP_MULTILINGUAL_PRESET_FIXTURE,),
name="PAMILayer:Fixture",
Expand Down Expand Up @@ -54,7 +53,6 @@ def test_plone_code_snippet_two():
from zope.component import queryAdapter
from zope.globalrequest import getRequest


logger = getLogger(__name__)
"""
)
Expand All @@ -68,8 +66,39 @@ def test_plone_code_snippet_three():

import logging


logger = logging.getLogger(__name__)

"""
)


def test_plone_code_snippet_four():
plone_isort_test(
"""# -*- coding: utf-8 -*-
from plone.app.querystring.interfaces import IQueryModifier
from zope.interface import provider

import logging


def my_function():
pass

"""
)


def test_plone_code_snippet_five():
plone_isort_test(
"""# -*- coding: utf-8 -*-
from plone.app.querystring.interfaces import IQueryModifier
from zope.interface import provider

import logging


class MyClass:
pass

"""
)