Open johnjasa opened 6 days ago
We should add a pre-commit hook for linting GreenHEART to streamline and simplify code coming from disparate sources.
Ruff is fast, easy-to-setup, and well-accepted. I'll defer to @RHammond2 about best settings though it should be pretty straightforward.
Agreed! We setup pre-commit hooks in the electrolyzer repo (inspired by FLORIS) that we could pull from as well: https://github.com/NREL/electrolyzer
Add ruff as an automatic linter
We should add a pre-commit hook for linting GreenHEART to streamline and simplify code coming from disparate sources.
Proposed solution
Ruff is fast, easy-to-setup, and well-accepted. I'll defer to @RHammond2 about best settings though it should be pretty straightforward.