Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reproducibility] Add consistent code style #8

Open
cthoyt opened this issue Feb 8, 2021 · 0 comments
Open

[reproducibility] Add consistent code style #8

cthoyt opened this issue Feb 8, 2021 · 0 comments

Comments

@cthoyt
Copy link

cthoyt commented Feb 8, 2021

There are lots of considerations when writing code, and having a consistent style is usually towards the bottom for scientific work. Luckily, there's a tool called black that can automatically reformat your code to look a way that most people will be able to easily read. Without this, others will have to exert extra effort to understand your code

This can be done with the following code:

$ pip install black
$ black predict.py predict_enriched.py
@cthoyt cthoyt changed the title Add consistent code style [reproducibility] Add consistent code style Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant