Makefiles are awesome, and you can use them in your Python projects too (they are not only to compile and build C/C++ projects that is) 😎 They help you automate various tasks and streamline the development process overall 🚀 They allow you to: – Manage dependencies– Run tests– Build documentation– Format your code– Lint and… Continue reading How to better streamline your Python project using a Makefile
Articles on coverage
Building a 500 line API regression test suite
By Bob Belderbos on 15 December 2022
This article appeared as a Pybites email first. If you like it consider joining our friends list for weekly Python, developer and (!) mindset content … Last year I built a cool API to post code images using our pybites-carbon tool. It will store the tip code in a database and store the code image in an… Continue reading Building a 500 line API regression test suite
5 ways I use GitHub Actions
By Bob Belderbos on 14 December 2022
I am increasingly using GitHub Actions these days. If you’re new to this you might want to check out our article or video. In this article I will show you 5 cool ways I use it day to day. Run tests and linters The first and most obvious reason is to automate tooling. Although you probably want to… Continue reading 5 ways I use GitHub Actions
Exploring the Mutpy Library and How PyBites Uses it to Verify Test Code
By Harrison Morgan on 9 February 2020
A while back we launched our Test Bites. In this follow up article Harrison explains the MutPy mutation testing tool in depth and how we use it to verify test code on our platform. Enter Harrison.
PyBites Twitter Digest – Issue 30, 2018
By PyBites Team on 23 September 2018
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
All You Need to Know to Start Using Fixtures in Your pytest Code
By Bob Belderbos on 15 March 2018
Setting up test cases for code that manage data can be challenging but it’s an important skill to reliably test your code. You might have heard of the setup and teardown methods in unittest. In pytest you use fixtures and as you will discover in this article they are actually not that hard to set up. Fixtures have been labelled pytest’s killer feature so let’s explore them in this article using a practical example.
Best Practices for Compatible Python 2 and 3 Code
By Bob Belderbos on 22 March 2017
95% of most popular Python packages support Python 3. Maybe you are lucky and get to start fresh using Python 3. However as of last year Python 2.7 still reigns supreme in pip installs and at a lot of places 2.x is the only version you get to work in. I think writing Python 2 and 3 compatible code is an important skill, so lets check what it entails.