iiasa / message_ix

The integrated assessment and energy systems model MESSAGEix
https://docs.messageix.org
Apache License 2.0
112 stars 149 forks source link

Swap `black` for `ruff format` in code style/pre-commit #772

Closed khaeru closed 2 months ago

khaeru commented 5 months ago

As noted in the ruff docs, the compatibility is already very good, and in practice I (and others) are using ruff instead of black for formatting with no issues. I've also already made the change in khaeru/genno#105—again, no issues.

We can do this once 3.8.0 is released and update the docs description of the code style accordingly; and then do the same for ixmp and message-ix-models.

khaeru commented 2 months ago

This was done in #784.