From e242c7c0a7e3addf25436c7f140faedd843da4fa Mon Sep 17 00:00:00 2001 From: mokshith-moksh Date: Fri, 18 Oct 2024 11:00:56 +0530 Subject: [PATCH] FIXED-LINTING-ERROR-CI-CHECK --- .github/workflows/pre-commit.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index dfacf05f..5498c6f4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -42,5 +42,22 @@ jobs: run: yarn add eslint@^8.40.0 eslint-config-next@13.5.6 eslint-plugin-import@^2.29.0 eslint-plugin-prettier@^5.0.1 eslint-plugin-react@^7.29.4 eslint-plugin-unused-imports@^3.0.0 --dev working-directory: web-server + - name: Setup Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Create and activate virtual environment + run: | + python -m venv venv + source venv/bin/activate + + - name: Install pre-commit + run: | + source venv/bin/activate + python -m pip install pre-commit + - name: Run pre-commit hooks uses: pre-commit/action@v3.0.1 + with: + extra_args: --all-files