diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-07 18:31:15 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-07 18:31:15 +0000 |
commit | a13cf2c24dd16b37670ee1d359f511cbdfa4402d (patch) | |
tree | 8ad1b7f385797dbee5834aca74178fbb56dbc6bf /tests/test_domain_py.py | |
parent | 8384aa51a7f07ab653ef74ada77c22782d6ebc1d (diff) | |
download | sphinx-git-a13cf2c24dd16b37670ee1d359f511cbdfa4402d.tar.gz |
Adopt ``profile = "black"`` for ``isort``
This allows using Ruff's import sorting fixers
Diffstat (limited to 'tests/test_domain_py.py')
-rw-r--r-- | tests/test_domain_py.py | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 19fcfd36f..4bf30b4bc 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -8,15 +8,34 @@ import pytest from docutils import nodes from sphinx import addnodes -from sphinx.addnodes import (desc, desc_addname, desc_annotation, desc_content, desc_name, - desc_optional, desc_parameter, desc_parameterlist, desc_returns, - desc_sig_keyword, desc_sig_literal_number, - desc_sig_literal_string, desc_sig_name, desc_sig_operator, - desc_sig_punctuation, desc_sig_space, desc_signature, - pending_xref) +from sphinx.addnodes import ( + desc, + desc_addname, + desc_annotation, + desc_content, + desc_name, + desc_optional, + desc_parameter, + desc_parameterlist, + desc_returns, + desc_sig_keyword, + desc_sig_literal_number, + desc_sig_literal_string, + desc_sig_name, + desc_sig_operator, + desc_sig_punctuation, + desc_sig_space, + desc_signature, + pending_xref, +) from sphinx.domains import IndexEntry -from sphinx.domains.python import (PythonDomain, PythonModuleIndex, _parse_annotation, - _pseudo_parse_arglist, py_sig_re) +from sphinx.domains.python import ( + PythonDomain, + PythonModuleIndex, + _parse_annotation, + _pseudo_parse_arglist, + py_sig_re, +) from sphinx.testing import restructuredtext from sphinx.testing.util import assert_node |