GreenScheduler / cats

CATS: the Climate-Aware Task Scheduler :cat2: :tiger2: :leopard:
https://greenscheduler.github.io/cats/
MIT License
50 stars 8 forks source link

Add pre-commit configuration and autoformat #75

Closed abhidg closed 6 months ago

abhidg commented 6 months ago

This PR adds pre-commit configuration. I have opted to use ruff as the linter, open to alternatives. Reason for choosing ruff over flake8, black is that it is one tool that combines most Python autoformatting and linting functions in one and is very fast.

ljcolling commented 6 months ago

Good choice with Ruff, and it kinda fits with the ethos of the project