1

I'm trying the STE Anaconda's autoformatting feature and it works well with every other PEP8 feature but seems to not change any lines that are like:

def foo():  # asasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasasas
    pass

even though the line is clearly longer than the PEP8 limit. Is there a setting that I'm missing or does Anaconda not cover this with it's autoformatter? Are there any other PEP8 formatting packages / comment wrapping packages that anyone recommends?

Alternatively, are comments exempt from this 79 character limit by any chance?

MattDMo
  • 100,794
  • 21
  • 241
  • 231
amai
  • 93
  • 1
  • 10
  • From the [Maximum Line Length](https://www.python.org/dev/peps/pep-0008/#id19) section of PEP8: *Limit all lines to a maximum of 79 characters. For flowing long blocks of text with fewer structural restrictions (docstrings or comments), the line length should be limited to 72 characters.* So, looks like comments are not exempt. – MattDMo Aug 20 '21 at 20:57

0 Answers0