2026-04-01 01:10:40
When unit-testing a function that make multiple external calls/requests, we want to mock the actual call and return the mock results. For each call, we might want to return different results.
2026-03-28 02:12:27
Previously, our projects are still using the old Python 3.10, which will be deprecated soon this year. We are also using the good old pip and venv for the project/package management. This is already posing some issues for us:
requirements.txt is not a lockfile and thus does not ensure a fully reproducible python environmentIn order to solve these problems, I took the effort to migrate our project management to uv. Here are some of the things that I learned in the process as a first-time uv user.
2026-02-15 23:06:55
2026-02-08 05:21:02
2025-12-20 01:19:30
When I am working on a Python project, I am using black to format the code, so that we have a unified format across the code base.
One pain point, however, is the super annoying trailing white spaces:
2025-11-20 05:06:06