gadsbyfly / PyBioMed

machine learning, molecular descriptor
http://pybiomed.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
109 stars 61 forks source link

MAINT: Make formatting consistent #6

Closed MartinThoma closed 4 years ago

MartinThoma commented 4 years ago

All of this can be done automatically before each commit by installing pre-commit:

$ pip install pre-commit $ pre-commit install

MartinThoma commented 4 years ago

This commit is purely about style. It should not have any effect on the code execution.

The changes were done by adding two files (.isort.cfg and .pre-commit-config.yaml) and running

pre-commit run --all-files

The black formatter is supported by the Python Software Foundation (psf). There are two reasons to use such an automatic code formatter:

  1. The code will look familar to anybody who uses a similar formatter.
  2. No more discussions about formatting.