make stylish

“stylish” is a target in the python code base Makefiles. It runs a series of lints and style checkers.

Run it or Jenkins will hate you.


pyqver is a tool that checks python code to determine what version of python it needs to run. It can tell you what is not backwards compatible to a given python version

We use it in its “lint” mode so that it annotates source code lines that are not compatible with python 2.4, the version of python from RHEL5.

You should install this.

If you see “ command not found”, you need to install this.

To install, clone the repo above:

$ git clone

Then copy somewhere in your $PATH.

“make versionlint” will run it specifically. It is part of “make stylish”


pep8 is the general style guide for python code. See the specification here.

We generally try to adhere to it.

‘pep8’ the tool, is a lint-like tool that will tell you when and how your code is not pep8 compliant

Fedora and EPEL have ‘python-pep8’ available. Newer versions are available from PyPi or from the github repo above.

“make pep8” will run it specifically. It is part of “make stylish”


pyflakes is another static analysis tool for python.

“make pyflakes” runs it specifically. It is part of “make stylish”


This target checks python code for trailing whitespace or the use of tabs.

They are part of “make stylish”


This target checks python code for debugger invocations (‘import pdf; pdb.set_trace()’, etc).

It is part of “make stylish”


This target tries to verify that any gtk signals that are defined in .glade files are at least references from python code.

It is part of “make stylish”


This target tries to find any references to gtk widget names as strings, and verify that they are defined.

It is part of “make stylish”


rpmlint checks the specfile for common errors and mistakes.

It is part of “make stylish”

Last modified on 12 September 2016