Skip to content

can not change pymode_options_max_line_length #1178

@smilesun

Description

@smilesun

I set the following but pymode still hint line length bigger than 79, anything i can change to make the max length 100?

 let g:pymode_motion = 1¬                                                                                                           
   907   " see 'tmhedberg/SimpylFold'  " python  function class folding,  zc(in situ) will fold, zo(in situ) will open¬                     
   908   let g:pymode_run = 1¬                                                                                                              
   909   let g:pymode_breakpoint = 1¬                                                                                                       
   910   let g:pymode_breakpoint_bind = '<leader>b'¬                                                                                        
   911   let g:pymode_python = 'python3' ¬                                                                                                  
   912   let g:pymode_lint_on_write = 1¬                                                                                                    
   913   let g:pymode_lint_ignore = ["torch", "tf"]  " ignore all static lint information from pytorch and tensorflow¬                      
   914   let g:pep8_ignore="torch,tf"¬                                                                                                      
   915   " defines which interpreter to use when execute PymodePython import sys, when set "python", will have problem with import module¬  
   916   " pymode has a strange path search function, for example, PymodeRun can get error because it can not¬                              
   917   " find scipy which is already installed¬                                                                                           
~  918   let g:pymode_options_max_line_length=100¬                                                                                          
+  919   let g:pymode_lint_options_pycodestyle =¬                                                                                           
+  920         \ {'max_line_length': g:pymode_options_max_line_length}¬                                                                     
+  921   let g:pymode_lint_options_pylint =¬                                                                                                
+  922         \ {'max-line-length': g:pymode_options_max_line_length}¬                                                                     
   923   let g:pymode_lint_options_pep8 = {'max_line_length': g:pymode_options_max_line_length, 'ignore=errors':["torch", "tf"]}¬           
+  924   "let g:pymode_lint_checkers = ['pylint', 'pyflakes', 'pep8', 'mccabe']¬                                                            
+  925   "let g:pymode_lint_checkers = ['pylint']¬                                                                                          
   926   let g:pymode_virtualenv=1¬                                                                                                         
   927   " echo $CONDA_PREFIX¬                                                                                                              
   928   let g:pymode_virtualenv_path=expand('~/anaconda3')¬                                                                                
   929   let g:pymode_rope = 0¬                                                                                                             
   930   "*:PymodeRopeNewProject* [<path>] -- Open new Rope project in the given path¬                                                      
   931   "*:PymodeRopeRegenerate* -- Regenerate the project cache¬                                                                          
   932   let g:pymode_rope_show_doc_bind = '<C-c>d'  " ctrl+c + d for documentaion of object¬                                               
   933   let g:pymode_rope_lookup_project = 0¬               

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions