From 56876c25c958d2483d1e76ae17496548a6ba0ee6 Mon Sep 17 00:00:00 2001
From: Katie Worton <katie.worton@linaro.org>
Date: Wed, 8 May 2024 18:25:30 +0100
Subject: [PATCH] .github/workflows/squad-client-utils-pipeline: Update to use
 pre-commit

Update the CI pipeline for this repo to make use of pre-commit. This
way, pre-commit and the CI pipeline will stay aligned.

Signed-off-by: Katie Worton <katie.worton@linaro.org>
---
 .github/workflows/squad-client-utils-pipeline.yml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/squad-client-utils-pipeline.yml b/.github/workflows/squad-client-utils-pipeline.yml
index 7151c08..26e240a 100644
--- a/.github/workflows/squad-client-utils-pipeline.yml
+++ b/.github/workflows/squad-client-utils-pipeline.yml
@@ -19,12 +19,9 @@ jobs:
       - name: Install deps
         run: |
          python -m pip install --upgrade pip
-         pip install black flake8
+         pip install pre-commit
+         pre-commit install
 
       - name: Linting
         run: |
-         black --check --diff .
-
-      - name: flake8
-        run: |
-         flake8 --exclude=dist/ --ignore=E501,W503 . squad-*
+         pre-commit run --all-files --show-diff-on-failure