'Python Black code formatter doesn't format docstring line length

I am running the Black code formatter against a Python script however it doesn't reformat the line length for docstrings. For example, given the following code:

def my_func():
    """
    This is a really long docstring. This is a really long docstring. This is a really long docstring. This is a really long docstring. This is a really long docstring. This is a really long docstring.
    """
    return

When running Black against this script, the line length does not change. How can I ensure docstrings get formatted when running Black?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source