diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index f9e70faa..6c356457 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -10,7 +10,9 @@ on: jobs: pre-commit: + name: Pre-commit + runs-on: ubuntu-latest steps: diff --git a/pre-commit.yaml b/pre-commit.yaml new file mode 100644 index 00000000..2efb1421 --- /dev/null +++ b/pre-commit.yaml @@ -0,0 +1,23 @@ +name: Pre-commit + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pre-commit: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v3 + + - name: Run pre-commit hooks + uses: pre-commit/action@v3.0.1