Search⌘ K
AI Features

Analyzing Your Code

Explore how to use pylint and pyflakes to analyze Python code quality. Learn to identify errors, warnings, and style issues, improve your code by adhering to conventions, and understand output categories for effective debugging.

We'll cover the following...

Once pylint is installed, you can run it on the command line without any arguments to see what options it accepts. If that doesn’t work, you can type out the full path like this:

Javascript (babel-node)
c:\Python34\Scripts\pylint

Now we need some code to analyze. Here’s a piece of code that has four errors in it. Save this to a file named ...