Improve code quality
This MR improves the quality of the code in all modules by responding to the report created by the new Ruff analyzer (see !8 (merged)).
This MR improves the quality of the code in all modules by responding to the report created by the new Ruff analyzer (see !8 (merged)).