Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Ruff formater lengthens the string, how to make sure that it does not change strings that are already less than the length specified in the settings

The problem is that this is the line:

__all__ = (
    "Base",
    "TimestampMixin",
    "BaseUser",
    "User",
    "Locale",
    "DBBot"
)

It turns you into such a

__all__ = ("Base", "TimestampMixin", "BaseUser", "User", "Locale", "DBBot")

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Add a trailing comma (Ruff playground):

__all__ = (
    "Base",
    "TimestampMixin",
    "BaseUser",
    "User",
    "Locale",
    "DBBot",
)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading