Line is too long. Django PEP8

前端 未结 6 976
余生分开走
余生分开走 2021-02-01 04:09

PEP8 info:

models.py:10:80: E501 line too long (83 > 79 characters)

Models.py:

field = TreeForeignKey(\'self\', null         


        
6条回答
  •  礼貌的吻别
    2021-02-01 04:57

    autopep8 can solve spacing issues in files and entire project as well, here is a link to the documentation: https://github.com/hhatto/autopep8

    1. pip install --upgrade autopep8
    2. autopep8 --in-place --aggressive --aggressive
      ex: autopep8 --in-place --aggressive --aggressive C://a/test.py

提交回复
热议问题