From bba8a40b4807b4e0eef20c674b9cbdae4720d6dc Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Thu, 10 Apr 2025 16:57:07 +0200 Subject: [PATCH 1/2] Add pre-commit gha workflow --- .github/workflows/pre-commit.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 000000000..c78d02fd4 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,21 @@ +--- +name: "Pre-commit" +on: + pull_request: + push: + branches: [main] +jobs: + pre-commit: + name: Run pre-commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - run: python -m pip install pre-commit + shell: bash + - uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + - run: pre-commit run --show-diff-on-failure --color=always -a + shell: bash From 24555b8502d96e076eb9050eec98a03c1e982e76 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Thu, 10 Apr 2025 17:09:52 +0200 Subject: [PATCH 2/2] Fix uv-sync pre-commit --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index 440e443a1..6769d3b09 100644 --- a/uv.lock +++ b/uv.lock @@ -746,7 +746,7 @@ wheels = [ [[package]] name = "pytest-taskgraph" -version = "0.1.0" +version = "0.2.0" source = { directory = "packages/pytest-taskgraph" } dependencies = [ { name = "pytest" },