Live data from Hacker News

Prospector: Python Static Analysis for Humans

blog.landscape.io

1–10 of 22 posts

Re: Prospector: Python Static Analysis for Humans

#3
post #2

I 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.

I don't think the author's tool is in opposition to IDE/plugin based static analysis. For one thing, tools like python-mode for vim (https://github.com/klen/python-mode) call out to libraries like pylint to implement their functionality. Prospector also supports machine readable outputs that IDEs/plugins can use to determine how to display linting issues.

Even if you prefer not to use a command-line based linter, a non-GUI option is essential if you want to do linting with CI. If you run an open source Python project, you can't assume that everyone will use a linter to check for warnings before submitting a PR (and even then, can't assume their linter settings match yours)—but you can check easily lint all PRs using Travis CI or the author's company Landscape.

Re: Prospector: Python Static Analysis for Humans

#7
post #5

GPLv2 License - https://github.com/landscapeio/prospector/blob/master/LICENS... Warning for those who don't use that license.

If you're using it as an external tool then the license is an irrelevant detail. Folks don't typically do "import pylint" in their code.

Re: Prospector: Python Static Analysis for Humans

#10
This is an awesome tool with a lot of potential and I can't wait to see it evolve. Even though all the hard work is actually done by the 3rd party checkers, THIS ties all these other tools together and makes them an order of magnitude more accessible. Well done!
Post reply on HN