openmobilityfoundation / mds-openapi

OpenAPI description for MDS data feeds, managed by the Open Mobility Foundation.
https://openmobilityfnd.stoplight.io/docs/mds-openapi
Other
8 stars 2 forks source link

Set up pre-commit #4

Closed thekaveman closed 1 year ago

thekaveman commented 1 year ago

pre-commit is a tool that runs checks during the commit lifecycle; things like ensuring the files being committed have a newline at the end, or conform to a particular style, etc.

Here we configure a few basic quality of life pre-commit hooks:

But the interesting hook is:

pre-commit works locally, and we can configure the https://pre-commit.ci integration with this repo (pending approval) to provide a check that can be run for commits and PRs in GitHub.