Python Code Formatters

If you write code that other developers review or contribute to, chances are you’re already adhering to a style guide for writing code. In this post, we look at the most popular code formatters in Python and help you decide on which one you should adopt.

The most popular code formatters in Python is:

Method Parameters Marked Final: Good Approach?

On a recent project, we started to employ CheckStyle to help enforce good code quality and standards. I added the CheckStyle plugin to my IntelliJ IDEA client and introduce the checkstyle.xml from another client's project and ran the analysis.

I wasn't completely sure what to expect, since the API had been created before I started the project. As it turns out, the results were not all that bad. Making sure spacing was standardized, setting private class constructors for utility classes, and removing the public prefix on interface classes were common items that needed to be fixed.