NREL / flasc

A rich floris-driven suite for SCADA analysis
https://nrel.github.io/flasc/
BSD 3-Clause "New" or "Revised" License
31 stars 18 forks source link

Add RUFF linting/formatting #143

Closed paulf81 closed 9 months ago

paulf81 commented 9 months ago

Add RUFF linting/formatting

This pull request will add RUFF as the linting/formatter for FLASC. This pull request will replace #61 as that one has gotten a bit stale. RUFF linting and formatting regulates the style of the code to confirm with something like the BLACK standard (https://github.com/psf/black). It is also the lint/formatter used for FLORIS

Feature or improvement description

closes Issue #146

Other notes

Almost every file is touched by this, but I confirmed all tests pass and just picking some examples at random shows no issue.

Still to go:

paulf81 commented 9 months ago

@misi9170 I think this is almost ready, the main thing left I think is figure out a way to quickly churn through the long line errors that I can't seem to fix automatically, there's unfortunately a lot of them...

paulf81 commented 9 months ago

ok @misi9170 this is finally ready for review, but no rush, thanks!

paulf81 commented 9 months ago

Going to merge now to clean up some other incoming requests,