Format your code contribution - electricitymaps/electricitymaps-contrib GitHub Wiki

The Electricity Maps contrib repository enforces some code formatting. These rules are here to improve code quality, readability, and make it easier for us to review your amazing contributions.

Automatic checks verify that the code you submit respect the defined format, and that code cannot be accepted as long as it does not respect it.

We have nevertheless automated the formatting commands so that you can make your code compliant by simply running a single CLI command. See below for details.

To check whether the code inside contrib respects the formatting, run:

uv run lint

if it's not the case, fix it up by running:

uv run format

And voila 🪄