diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..a7bb78b --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,20 @@ +# Copyright (c) 2023 Sebastian Pipping +# Licensed under the MIT license + +name: Run pre-commit + +on: +- pull_request +- push +- workflow_dispatch + +jobs: + pre-commit: + name: Run pre-commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.12 + - uses: pre-commit/action@v3.0.0