terrapower / armicontrib-openmc

ARMI plugin for building and running OpenMC models
Apache License 2.0
6 stars 3 forks source link

Adding black code formatter to CI #10

Closed john-science closed 4 months ago

john-science commented 4 months ago

I was driving by and thought I'd add a code formatter to the project.

ARMI, and the rest of our ecosystem, uses the black code formatter. Do you know it?

It makes it so we never again have to have a boring discussion about code formatting or style guides; we just automate all that.

And this little CI step will ensure any new PRs comply with the black formatting. If not, it fails, and the PR opener has to go and reformat their code:

black .