[Python] Why does PyCharm use 120 Character Lines even though PEP8 Specifies 79?

Discussão em 'Python' iniciado por Stack, Fevereiro 15, 2025.

  1. Stack

    Stack Membro Participativo

    PEP8 clearly specifies 79 characters, however, PyCharm defaults to 120 and gives me the warning "PEP8: line too long (... > 120 characters)".

    Did previous versions of PEP8 use 120 and PyCharm not update its PEP8 checker? I couldn't find any previous versions of the PEP8 Guide, however, I can easily find previous version of the PEP8 Python scripts.

    I'm starting a new Python project and I'm not sure which to use.

    References:

    http://legacy.python.org/dev/peps/pep-0008/

    Continue reading...

Compartilhe esta Página