jszopi / repESP

Reproducing molecular ESP from partial charges and more
GNU General Public License v3.0
6 stars 7 forks source link

Format repo with `black` and set up `pre-commit` #45

Open jszopi opened 5 years ago

jszopi commented 5 years ago

black is a PEP8-compliant auto-formatter, which doesn't allow any configuration aside from line length. Its style looks reasonable, so I'd like to give it a go here. The author recommended pre-commit to ensure that contributors see the result of the formatting on their side. I have yet to research alternatives, but I like the fact that it allows multi-language hooks, which pip installing a package can't provide.