How to write a pep8 configuration (pep8.rc) file?

后端 未结 3 1469
别那么骄傲
别那么骄傲 2021-02-01 05:05

I found the documentation for pep8 but wasn\'t able to understand how to write these. I couldn\'t even find any examples with options other than setting max-line-length and igno

3条回答
  •  遇见更好的自我
    2021-02-01 05:28

    They renamed pep8 to pycodestyle to avoid confusion.

    You can create a setup.cfg file with:

    [pycodestyle]
    ignore = E226,E302,E41
    max-line-length = 119
    exclude =
        tests/
        docs/
    

    For the error codes, you can read this documentation.

提交回复
热议问题