Guest User

Untitled

a guest
Jan 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. pip install flake8 pep8-naming autopep8
  2.  
  3. # auto fix
  4. find . -name node_modules -prune -o -name '*.py' -exec autopep8 --in-place --aggressive --aggressive {} \;
  5.  
  6. # these have to be fixed manually
  7. find . -type d -name 'node_modules' -prune -o -name '*.py' -exec flake8 --ignore=E501 {} \;
  8.  
  9. # make sure to run
  10. grep -r "{global_variable}"
  11. grep -r "{global_function}\("
  12. # to fix your usage in other files in your project
Add Comment
Please, Sign In to add comment