Project-Platypus / Platypus

A Free and Open Source Python Library for Multiobjective Optimization
GNU General Public License v3.0
553 stars 152 forks source link

Maintenance: Remove trailing whitespaces, upgrade to Python 3 syntax, add pre-commit configuration #194

Closed EwoutH closed 1 year ago

EwoutH commented 1 year ago

This PR does two maintenance things:

It also adds a pre-commit configuration, defined in .pre-commit-config.yaml, which checks for these things automatically. It checks once a month if there are any updates, so it's easy on maintanance.

pre-commit can be enabled on https://pre-commit.ci/.

There are a lot of other pre-commit hooks available that check automatically for things, see https://pre-commit.com/hooks.html.

EwoutH commented 1 year ago

@dhadka What do you think of this?

dhadka commented 1 year ago

It looks good to me. I'll follow up after merging to see if we can remove six.