Skip to content

Commit cbdf979

Browse files
authored
Add a FAQ entry regarding the isort compatibility issue (#338)
1 parent 00fe667 commit cbdf979

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
## 📚 Documentation
1414
* Updated design doc (Added known Issues)
1515
* Updated migration progress table
16+
* Updated the FAQ with an entry about the ``isort`` compatibility issue
1617

1718
## 🔧 Changed
1819
* Updated `actions/upload-artifacts` version to `4.6.0`

doc/faq.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,33 @@ Limited Previous Versions in Multiversion Documentation
6363
-------------------------------------------------------
6464

6565
If not all previous versions of the project are available via the version selection box of the multiversion documentation, it is likely due to the fact that the unavailable documentation for those versions was not in a compatible format (there hasn't been a compatible setup of a Sphinx-based documentation).
66+
67+
68+
.. _faq_failing_format_check:
69+
70+
Format Still Fails After Running ``project:fix``
71+
------------------------------------------------
72+
73+
If running the following sequence of commands results in ``project:format`` failing with an error during the execution of ``isort``:
74+
75+
#. Run ``project:fix``
76+
#. Run ``project:format``
77+
78+
It is very likely that you did not configure ``isort`` and/or ``black`` appropriately in your ``pyproject.toml`` file.
79+
80+
Ensure ``isort`` is configured with compatibility for ``black``:
81+
82+
.. code-block:: toml
83+
84+
[tool.isort]
85+
profile = "black"
86+
force_grid_wrap = 2
87+
88+
Additionally, your black configuration should look similar to this:
89+
90+
.. code-block:: toml
91+
92+
[tool.black]
93+
line-length = 88
94+
verbose = false
95+
include = "\\.pyi?$"

0 commit comments

Comments
 (0)