Posts tagged Python
Developer workflow with local tests using Docker Compose
- 2023-04-08
- English
Recently, I did a presentation about my development workflow for back-end applications.
Separating different kinds of tests
- 2023-03-27
- English
When I work on a project I differentiate three kinds of tests: unit, integrated, and external. In this post I’ll explain how I think about them.
Make and entr for code validation during editing
- 2021-12-30
For a while now, I’ve been wondering how to combine entr
(which automatically runs commands on file changes)
with the way I setup project validation (both for CI/CD and for local developer usage) with Makefiles.
The best thing I got so far is the validate_continously
target in
my Makefile.
Enforcing Python imports’ order with isort, Makefiles, and Vim
- 2021-12-27
I finally integrated isort into my toolbox.
I think that the job of changing code files belongs to the editor (or an IDE),
so I made Vim run isort
automatically,
while the import order enforcement in a project is done via Makefile
(which can be run the same way by developers and the CI/CD pipeline).
Setting up and syncing config on two laptops
- 2021-09-23
I’ve created a script that should [1] set up a fresh Manjaro with all the software and configuration that I want in a workstation. It can also update the setup on being rerun. Now I have two laptops that behave and look the same [2], and it’s easy for me to maintain that state. Oh I wanted that for a long time :)
Some shell functions for working with Python virtualenvs
- 2021-03-31
Finally doing some scripting today. I noticed that there are some python-virtualenv-related commands I run often (in my tmux-based “IDE”), so I automated them away to shave off some keystrokes.
Universal app reload with entr
- 2020-02-18
A useful feature many web frameworks have is auto-reload. Your app is running in the background, you change the code, and the app is restarted with those changes, so you can try them out immediately. What if you wanted that behavior for everything that you’re writing? And without any coding to implement it over and over in every little project?
A simple self-modifying function in Python
- 2018-10-04
Replacing its own definition is a fun/horrifying thing that a Python function can do:
My talk about TDD of microservices
- 2016-12-10
This year at EuroPython (and not only there), I gave a talk about Test Driven Development of Python microservices. I guess you can check it out, if you’re into that kind of stuff. It’s also available in Polish.
Continuous delivery of a Python library with AngularJS commit convention
- 2016-10-10
I got tired of having to manually build and upload my library (Mountepy) to PyPI, so I decided to do what any sane programmer would do - set up automation [1]. But how would my scripts know whether they need to just update the README on PyPI and when to assemble and push a new version of the library? Thanks to the AngularJS commit convention! Oh, and Snap CI will run the whole thing. Why Snap, you ask? See my previous article - Choosing a CI service for your open-source project.
Choosing a CI service for your open-source project
- 2016-09-18
I host my code on GitHub, as probably many or you do [1]. The easiest way to have it automatically tested in a clean environment (what everyone should do) is, of course, to use one of the hosted CI services integrated with GitHub.
Hi there!
- 2016-08-07
Yay! It’s yet another blog about Python, software development in general, technology and other related stuff!