ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
6 stars 3 forks source link

Python linting and formatting #306

Closed henrij22 closed 2 months ago

henrij22 commented 3 months ago

Backlog!

Python linting and formatting should be harmonized. For example the following line was not formatted correctly (spaces are missing) and the CI didn't catch this https://github.com/ikarus-project/ikarus/blob/fa0c8068a8de02ccbc9d3bdf2587690f60049d0a/ikarus/python/test/linearelastictest.py#L72 Also this Codacity Tool doesn't seem to be predictable. I have reformatted some code, and it found new issues therein, but I only changed format.

I would suggest using something like Ruff for formatting and linting, maybe with a custom set of rules (https://github.com/astral-sh/ruff) This can also be done via GH Action