I use pyflakes, and out of the box it doesn't give ANY stylistic warnings, only basic "I don't think this variable exists" and common symptoms of typos like unused variables and overwriting a local var with a loop variable (I suppose you could argue that that could be a stylistic choice, but the intention is to catch errors, not correct your code style).
Prospector: Python Static Analysis for Humans
11–20 of 22 posts
Re: Prospector: Python Static Analysis for Humans
#12For those who are interested in this, check out the security-focused Python static analysis tool that I built an initial PoC for and we've been building out within the OpenStack Security Group. The Bandit project page is at https://wiki.openstack.org/wiki/Security/Projects/Bandit and the code at https://github.com/stackforge/bandit.
Re: Prospector: Python Static Analysis for Humans
#13"you will consider most of the warnings that come from tools like pylint or pep8 or pyflakes to be a bit picky." I use pyflakes, and out of the box it doesn't give ANY stylistic warnings, only basic "I don't think this variable exists" and common symptoms of typos like unused variables and overwriting a local var with a loop variable (I suppose you could argue that that could be a stylistic choice, but the intention…
Re: Prospector: Python Static Analysis for Humans
#14I think a better alternative is to use python mode for vim and get all the static analysis checks as you're coding. I tend to do half my development using an IDE (java/scala), but I don't really miss any of those features using this great plugin and vim.
Anyone happen to know a good way to debug vimscript?
Re: Prospector: Python Static Analysis for Humans
#15This "for humans" trend really needs to stop :)
Re: Prospector: Python Static Analysis for Humans
#16Re: Prospector: Python Static Analysis for Humans
#17How do all these libraries check comments? As far as I know, the Python ast library does not parse comments?
Re: Prospector: Python Static Analysis for Humans
#18How do all these libraries check comments? As far as I know, the Python ast library does not parse comments?
Re: Prospector: Python Static Analysis for Humans
#19Is there a way to use it with YouCompleteMe/Syntastic?
Re: Prospector: Python Static Analysis for Humans
#20"The whole purpose of this project is to get people using static analysis. I think they're an excellent resource for projects and can help you find problems in your code and even learn new things." -- agreed! I'm looking forward to having a play with Prospector. For those who are interested in this, check out the security-focused Python static analysis tool that I built an initial PoC for and we've been building out…