From f265ded09dd48f15e0ff7edc63e37a4abe192f22 Mon Sep 17 00:00:00 2001 From: Kara Engelhardt Date: Mon, 22 Apr 2024 16:24:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Use=20pre-commit=20in=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 768e6c776..09d4ead11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,18 +19,9 @@ jobs: node-version: '20' cache: 'yarn' - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install .[lint] - yarn install - - name: Run flake8 - run: flake8 froide --statistics - - name: Run black - run: black --check froide - - name: Run isort - run: isort --check froide - - name: Run eslint - run: yarn lint + run: yarn install + + - uses: pre-commit/action@v3.0.0 test: runs-on: ubuntu-latest