Add pre-commit hooks

This will ensure that there is standard linting applied to files in
the repository. It assists in avoiding conflicts due to different
contributers' IDEs.

It is recommended that contributers run the following:
`pre-commit install -t pre-push -t pre-commit`
This commit is contained in:
Nick Farrell 2022-12-17 18:18:16 +11:00
parent 6f170b1ad7
commit 108ad3c7c3
No known key found for this signature in database
GPG key ID: 740D3A86CF435835
2 changed files with 39 additions and 0 deletions

13
.github/workflows/pre-commit.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: pre-commit
on:
pull_request:
push:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0