summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-07 18:31:15 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-01-07 18:31:15 +0000
commita13cf2c24dd16b37670ee1d359f511cbdfa4402d (patch)
tree8ad1b7f385797dbee5834aca74178fbb56dbc6bf /sphinx/domains/cpp.py
parent8384aa51a7f07ab653ef74ada77c22782d6ebc1d (diff)
downloadsphinx-git-a13cf2c24dd16b37670ee1d359f511cbdfa4402d.tar.gz
Adopt ``profile = "black"`` for ``isort``
This allows using Ruff's import sorting fixers
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py28
1 files changed, 21 insertions, 7 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 97964d82f..39683c179 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -22,13 +22,27 @@ from sphinx.roles import SphinxRole, XRefRole
from sphinx.transforms import SphinxTransform
from sphinx.transforms.post_transforms import ReferencesResolver
from sphinx.util import logging
-from sphinx.util.cfamily import (ASTAttributeList, ASTBaseBase, ASTBaseParenExprList,
- BaseParser, DefinitionError, NoOldIdError, StringifyTransform,
- UnsupportedMultiCharacterCharLiteral, anon_identifier_re,
- binary_literal_re, char_literal_re, float_literal_re,
- float_literal_suffix_re, hex_literal_re, identifier_re,
- integer_literal_re, integers_literal_suffix_re,
- octal_literal_re, verify_description_mode)
+from sphinx.util.cfamily import (
+ ASTAttributeList,
+ ASTBaseBase,
+ ASTBaseParenExprList,
+ BaseParser,
+ DefinitionError,
+ NoOldIdError,
+ StringifyTransform,
+ UnsupportedMultiCharacterCharLiteral,
+ anon_identifier_re,
+ binary_literal_re,
+ char_literal_re,
+ float_literal_re,
+ float_literal_suffix_re,
+ hex_literal_re,
+ identifier_re,
+ integer_literal_re,
+ integers_literal_suffix_re,
+ octal_literal_re,
+ verify_description_mode,
+)
from sphinx.util.docfields import Field, GroupedField
from sphinx.util.docutils import SphinxDirective
from sphinx.util.nodes import make_refnode