grackle-project / grackle

The Grackle chemistry and cooling library for astrophysical simulations and models.
Other
26 stars 50 forks source link

Introducing Additional Formatting Continuous Integration #218

Open mabruzzo opened 3 months ago

mabruzzo commented 3 months ago

With the recent flurry of development, I think it could be useful to introduce some additional Continuous Integration to further improve code uniformity. Inspired by the usage of pre-commit.ci in yt, I recently introduced pre-commit.ci to the Cholla code-base with great success. The capability to explicitly trigger pre-commit to automatically fix

I think that would be useful to introduce here (unless people strongly object).

In particular there are 2 things to consider:

mabruzzo commented 3 months ago

I guess the 2 major topics for discussion:

brittonsmith commented 3 months ago

I am generally in favor of this and I definitely agree the time to do it is before there is a lot of divergent development. I am wary of introducing merger conflicts, so perhaps starting with new files and then doing everything after, say, the next release or so would be a good idea. I don't have strong opinions on which style we go for. My understanding is that yt is moving to ruff, so maybe it's worth following them.

mabruzzo commented 3 months ago

Sounds great. I'll open a PR to do this. In that PR, I'll: