Skip to content

Commit

Permalink
ruff_python_formatter: move docstring handling to a submodule (#8861)
Browse files Browse the repository at this point in the history
This turns `string` into a parent module with a `docstring` sub-module.
I arranged things this way because there are parts of the `string`
module that the `docstring` module wants to know about (such as a
`NormalizedString`). The alternative I think would be to make
`docstring` a sibling module and expose more of `string`'s internals.

I think I overall like this change because it gives docstring handling a
bit more room to breath. It has grown quite a bit with the addition of
code snippet formatting.

[This was suggested by
@charliermarsh.](#8811 (comment))
  • Loading branch information
BurntSushi authored Nov 27, 2023
1 parent d9845a2 commit 33caa2a
Show file tree
Hide file tree
Showing 2 changed files with 839 additions and 826 deletions.
Loading

0 comments on commit 33caa2a

Please sign in to comment.