We should apply a linter to the code (e.g. ruff
as used by dolfinx
) and add a check in the github action that all committed code is linted.
See e.g. https://github.com/FEniCS/dolfinx/blob/6189a7e2f42a63cc2bafd10696862efb41f0c3f9/.github/workflows/ccpp.yml#L68