From 96492d9366f575077080b75af4396ee96e16951d Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Tue, 24 Sep 2024 10:20:41 +0100 Subject: [PATCH 1/2] Add badge for pre-commit.ci --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3e6a56c..84ad65e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![GitHub](https://img.shields.io/github/license/ImperialCollegeLondon/dune_processes)](https://raw.githubusercontent.com/ImperialCollegeLondon/dune_processes/main/LICENSE) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ImperialCollegeLondon/dune_processes/main.svg)](https://results.pre-commit.ci/latest/github/ImperialCollegeLondon/dune_processes/main) [![Test and build](https://github.com/ImperialCollegeLondon/dune_processes/actions/workflows/ci.yml/badge.svg)](https://github.com/ImperialCollegeLondon/dune_processes/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/ImperialCollegeLondon/dune_processes/graph/badge.svg?token=PG0WTYF8EY)](https://codecov.io/gh/ImperialCollegeLondon/dune_processes) From 8bc08273d6f221b1f0b97cb300e106f046d419ba Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Tue, 24 Sep 2024 10:21:31 +0100 Subject: [PATCH 2/2] Remove pre-commit workflows --- .github/workflows/pre-commit.yml | 15 --------------- .github/workflows/pre-commit_autoupdate.yml | 20 -------------------- 2 files changed, 35 deletions(-) delete mode 100644 .github/workflows/pre-commit.yml delete mode 100644 .github/workflows/pre-commit_autoupdate.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 2750e6a..0000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Run pre-commit hooks - -on: - push: - branches: [main] - pull_request: - -jobs: - pre-commit: - runs-on: [ubuntu-latest] - steps: - - uses: actions/checkout@v4 - - uses: pre-commit/action@v3.0.1 - - uses: pre-commit-ci/lite-action@v1.0.3 - if: always() diff --git a/.github/workflows/pre-commit_autoupdate.yml b/.github/workflows/pre-commit_autoupdate.yml deleted file mode 100644 index 5e6fb1f..0000000 --- a/.github/workflows/pre-commit_autoupdate.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Pre-commit auto-update - -on: - schedule: - - cron: 0 0 * * 1 # midnight every Monday - -jobs: - auto-update: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - uses: browniebroke/pre-commit-autoupdate-action@main - - uses: peter-evans/create-pull-request@v7 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: update/pre-commit-hooks - title: Update pre-commit hooks - commit-message: 'chore: update pre-commit hooks' - body: Update versions of pre-commit hooks to latest version.