Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $ pylint --version
  2. pylint 0.21.1,
  3. astng 0.20.1, common 0.50.3
  4. Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
  5. [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
  6.  
  7. pip install pylint
  8.  
  9. mkdir C:SomeDirectoryYouWillLeaveAlone
  10. pip download --dest=C:SomeDirectoryYouWillLeaveAlone pylint
  11.  
  12. pip install pylint --find-links=C:SomeDirectoryYouWillLeaveAlone
  13.  
  14. $ sudo vim /usr/bin/pylint
  15.  
  16. #!/usr/bin/python
  17.  
  18. #!/usr/bin/env python
  19.  
  20. cp /usr/bin/pylint /usr/local/bin/pylint
  21. vi usr/local/bin/pylint # Edit the file to use /usr/bin/env python
  22.  
  23. alias pylint='/usr/bin/env python $(which pylint)'.
  24.  
  25. ./env/bin/python -m pylint ...
  26.  
  27. # or in an already active env
  28. python -m pylint ...
  29.  
  30. [scripts]
  31. lint = "python -m pylint [--options] all-my-modules-names..."
  32.  
  33. pipenv run lint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement