tpaviot / ProcessScheduler

A Python package for automatic and optimized resource scheduling
https://processscheduler.github.io/
GNU General Public License v3.0
59 stars 17 forks source link

Code style #65

Closed dreinon closed 3 years ago

dreinon commented 3 years ago

Is there any code style in particular being used for this project? I normally use as close as I can PEP style, and I have formatters, linters and precommit hooks to achieve it, but I avoid passing them to files in this project since I don't want to change original style.

dreinon commented 3 years ago

Priority: low

tpaviot commented 3 years ago

I think I wrote some info into the CONTRIBUTING.md file, but I'm not sure. I only use Codacy for code quality review, but we could automate the execution of a linter as well

tpaviot commented 3 years ago

I use to work with PyLint

tpaviot commented 3 years ago

We can use Black https://github.com/psf/black No need to discuss any coding style policy

tpaviot commented 3 years ago

Just tested it, it's quite comfortable: no need to make any manual change, the code is automatically reformated

dreinon commented 3 years ago

Black is nice. The only thing I dislike are double quotes haha, but it's not something super important.

tpaviot commented 3 years ago

I suggest we go with black from now. No need to override default values, it's just perfect.

dreinon commented 3 years ago

Ok, all good!