How can I set the Python max allowed line length to 120 in Syntastic for Vim?

后端 未结 4 781
时光说笑
时光说笑 2021-02-12 13:40

I\'m using python-mode for Vim, I prefer for there to be 120 character lines rather than the stark 80 as defined in the PEP8 standard.

In python-mode, this is easy. I j

4条回答
  •  遇见更好的自我
    2021-02-12 14:16

    This is now configured globally in ~/.config/flake8 in linux and ~/.flake in windows. The file can look like this.

    [flake8]
    max-line-length = 120
    

    Have a look at their documentation for per project settings: http://flake8.readthedocs.io/en/latest/user/configuration.html#project-configuration

提交回复
热议问题