Top 5 Reasons to Build Tests for Your Code

As a Python developer, it’s important to make sure that your code is working correctly and efficiently. One way to do this is by building tests for your code. In this blog post, we’ll go over the top reasons why you should build tests for your Python code. Improved Quality One of the main benefits of building tests for your code is that it helps improve the quality of your code. When you write tests, you are effectively creating a set of requirements for your code to meet. This helps ensure that your code is doing what it’s supposed to do, and it helps catch any issues early on in the development process. ...

January 13, 2023 · 2 min · Scott

5 Common Reasons To Use Pre-commit Hooks in Your Python Project

Pre-commit hooks are scripts that run automatically before a commit is made. In my post Adding pre-commit Hooks to Python Repo, I explained how to configure pre-commit hooks in your repo and address the issues identified by them. After understanding how to setup these hooks, the next question is what hooks should I use and why? Here are five common reasons to use pre-commit hooks for Python and some example plugins that you can use for each reason. ...

January 6, 2023 · 5 min · Scott