Reformat code with black #7
Open
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.
Hi, thanks for making your code open source. There are a couple issues I had with reading through, understanding it, and installing it. One of the big problems was the formatting was very non-standard. Consider that the code for academic work is itself like the methods section of a paper, and it is indeed meant to be read and understood.
This pull request uses standard tooling for making the first major steps towards making the code more readable (and also therefore more maintainable). More specifically, this PR does the following:
tox.iniconfiguration file that's a recipe for auto-formatting the code withblackandisort. It can be run with firstpip install tox, then runningtoxin the command line