KipCrossing / geotiff

A noGDAL tool for reading and writing geotiff files
GNU Lesser General Public License v2.1
213 stars 23 forks source link

Use a pre-commit configuration #46

Closed Zeitsperre closed 2 years ago

Zeitsperre commented 2 years ago

When introducing changes to the library, ensuring that we don't introduce regressions on commit is an action that can be automated using existing checker utilities. One particular tool I use in a multitude of projects is pre-commit and its CI counterpart (https://pre-commit.ci/).

The types of checks we can perform are numerous:

I will open a PR with a handful of checks based on existing code practices, but if we want to adopt more, the list of potential checks is quite extensive (https://pre-commit.com/hooks.html).