From 48b15e55ba37a3c3d46be1b40710a4f23c3f74b4 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Fri, 25 Oct 2024 16:56:02 +0100 Subject: [PATCH] improve requirements.txt usage --- .github/workflows/linting.yml | 7 ++----- .github/workflows/unit-testing.yml | 3 +-- qa/requirements.txt | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index bea23a84d..be95e20a2 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -29,14 +29,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - pip install psutil - pip install flake8 - pip install ruff + pip install -r qa/requirements.txt - name: flake8 run: | - flake8 . --exclude src/exabgp/vendoring/ --exclude build/ --exclude site-packages --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --max-line-length 120 --exclude src/exabgp/vendoring/ --exclude build/ --exclude site-packages --count --select=E9,F63,F7,F82 --show-source --statistics - name: ruff run: | diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 4e42d0fe6..b5c385e3f 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -32,8 +32,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest pytest-cov + pip install -r qa/requirements.txt - name: pytest run: | diff --git a/qa/requirements.txt b/qa/requirements.txt index 281861fb4..f951e9a12 100644 --- a/qa/requirements.txt +++ b/qa/requirements.txt @@ -1,4 +1,5 @@ # running the test suite/code +ruff flake8 coveralls nose