style: clean up whitespace in python scripts #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove all trailing whitespace, primarily between code sections.
Tidy up indentation of multi-line comments, unifying indentation style to tabs.
The trailing whitespace and final newlines change is done via native VSCode functionality when the following config file is used:
.vscode/config.json{ "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true }Multiline comments were brought to the common indentation style manually.
Code style suggestions
In case you are using VSCode and want to use it as a primary editor for the repo, I can commit the configuration above in a separate PR. This will automatically trim redundant whitespace on file save.
Alternatively, an .editorconfig file may be used to guide contributors towards common indentation style. I can prepare one if needed.
Editorconfig is supported natively or via extensions by many common developer-oriented editors, but is also just a good single source of truth for code style. It is then up to developer which tools he prefers to use to conform to the style.
Yet another alternative is to leave the indentation alone and just manually tweak it as needed.
Good option in case you don't want to pollute the repo with extra configuration/tools files that are not directly relevant to the oref itself. It's just two python files after all.