JonathanShor / DoubletDetection

Doublet detection in single-cell RNA-seq data.
https://doubletdetection.readthedocs.io/en/stable/
MIT License
81 stars 23 forks source link

Create coding standards #122

Closed adamgayoso closed 5 years ago

adamgayoso commented 5 years ago

I believe we should conform to a coding style.

https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

VS Code will also recognize the setup.cfg file to override default flake8 args.

adamgayoso commented 5 years ago

@JonathanShor Feel free to change any of the settings

adamgayoso commented 5 years ago

~I have chosen not to use black on the codebase in this PR as we will be merging this along with the 3.0 release.~

I changed the base branch to dev 3.0.

JonathanShor commented 5 years ago

You know I am in favor of most of this, but I'm not sure it actually needs to be part of the repo. This is all development stuff. Who else do you envision is developing this package beyond us? That's the most important thing to establish before I can assess the particulars.

Tho, also talk to me about max-line-length = 119.

adamgayoso commented 5 years ago

I think this is beneficial even to just us as it's the easiest way to share this kind of information. Having these settings in your vs code Workspace is fine, but this is even easier because you don't have to think about it. If we take another hiatus, at least when we come back we won't have to remember our editor settings (assuming new computer, etc.).

adamgayoso commented 5 years ago

We can change the max line length to whatever you want. I updated it to 80.