PY-46321 Disabled the code formatter for PyDocstring language

PyDocstring is based on Python, but its custom tokens `>>>` and `...` are registered just as whitespace. These tokens are ignored by the Python code formatter, which results in exceptions from the formatting model, which doesn't cover the whole text range.

We could either fix the formatting model or just disable formatting for PyDocstring. I prefer the latter for now, since the current approach with PyDocstring being a dialect of Python results in many subtle errors. It's better to have a workaround for now and maybe re-write doctest support later.

GitOrigin-RevId: 68b9a57650631f5d7245c85ada294af85c0aad44
This commit is contained in:
Andrey Vlasovskikh
2021-04-08 22:47:36 +03:00
committed by intellij-monorepo-bot
parent ac36f11225
commit 44b1a7097f
4 changed files with 64 additions and 0 deletions

View File

@@ -25,5 +25,6 @@
<orderEntry type="module" module-name="intellij.platform.core.ui" />
<orderEntry type="module" module-name="intellij.platform.codeStyle" />
<orderEntry type="module" module-name="intellij.platform.editor" />
<orderEntry type="module" module-name="intellij.platform.codeStyle.impl" />
</component>
</module>