Closed ThijsMaas closed 7 months ago
@ThijsMaas LGTM but I see that the tests are failing on your fork (due to a missing dependency for black?)
@HadrienG The lint tests work now, apparently Black has different dependencies below Python version 3.11. I don't have the secrets for codecov, so that part still fails, not sure if there is a way around that?
@HadrienG The lint tests work now, apparently Black has different dependencies below Python version 3.11. I don't have the secrets for codecov, so that part still fails, not sure if there is a way around that?
You could try to add if: github.event.repository.fork == false
between line 28 and 29 in .github/workflows/pythonpackage.yml
(if block same indentation as name and uses)
That solved it, thanks!
Hi @HadrienG, As promised, here is the PR that includes only the restyling and formatting of the code base. It is formatted using black and isort and I also checked the codestyle with flake8 and fixed the errors it found.
These tools have setting files, which contain some defaults. Specifically, I set the line-length to 120, which is higher than the default 88 of black, but in my opinion this is very reasonable with our large screen sizes and modern IDEs.
I'm trying to add the checking functionality of each of these tools to the github action. They currently run in our ENPICOM fork, so they don't show up here.