From 315483769fa9f110d039f855986cad96b9cf5469 Mon Sep 17 00:00:00 2001 From: Mews <60406199+Mews@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:07:51 +0100 Subject: [PATCH 1/2] Chore: Add flake8-bugbear to dev requirements --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index ba4a28a..5f2ec75 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,6 +2,7 @@ black coverage flake8 +flake8-bugbear mypy packaging pre-commit From 41a636201d4c896cfc6cf5ae8b98786993b89bc0 Mon Sep 17 00:00:00 2001 From: Mews <60406199+Mews@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:07:57 +0100 Subject: [PATCH 2/2] CI/CD: Verify flake8 is picking up flake8-bugbear --- .github/workflows/linting.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 8c67585..14767ea 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -29,7 +29,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements-dev.txt - name: Lint with flake8 - run: flake8 --max-line-length=120 . --exclude env,configuration,venv,src,scripts,.venv,e2e + run: | + flake8 --version # Verify flake8 is picking up flake8-bugbear + flake8 --max-line-length=120 . --exclude env,configuration,venv,src,scripts,.venv,e2e lint-black: name: Linting with black