From 600b34ebebfebc5128b3684b7288e18f0d9788b0 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Fri, 27 Sep 2024 12:33:25 +0100 Subject: [PATCH] FIx codespell check (#8652) --- .codespell/.codespellrc | 2 +- .github/workflows/codespell.yml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.codespell/.codespellrc b/.codespell/.codespellrc index 5255128dffb..95aa2b2749f 100644 --- a/.codespell/.codespellrc +++ b/.codespell/.codespellrc @@ -1,5 +1,5 @@ [codespell] -skip = .git,package-lock.json,LOG.old.* +skip = .git,package-lock.json,LOG.old.*,venv count = quiet-level = 3 ignore-words = ./.codespell/wordlist.txt \ No newline at end of file diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 1511fd18304..d3a8b072166 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -16,8 +16,13 @@ jobs: - name: Checkout the repository uses: actions/checkout@v4 - - name: Install prerequisites - run: pip install codespell + - name: Set up a Python venv and install prerequisites + run: | + python3 -m venv venv + source venv/bin/activate + pip install codespell - name: Spell check - run: codespell --config=./.codespell/.codespellrc \ No newline at end of file + run: | + source venv/bin/activate + codespell --config=./.codespell/.codespellrc \ No newline at end of file