From 12bb68d5ee1a3d2f46e07a1535eec539ed2fd7d2 Mon Sep 17 00:00:00 2001 From: Martin Whitehouse Date: Fri, 22 Jul 2022 01:23:50 +0200 Subject: [PATCH] Add flake8 to workflow --- .github/workflows/pythonpackage.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 8ed8cf34..f604ea30 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -24,13 +24,13 @@ jobs: run: | pip install autopep8 autopep8 --exit-code --global-config .flake8 helpdesk - # - name: Lint with flake8 - # run: | - # pip install flake8 + - name: Lint with flake8 + run: | + pip install flake8 # stop the build if there are Python syntax errors or undefined names - # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 helpdesk --count --show-source --statistics --exit-zero # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + # flake8 . --count --exit-zero --max-complexity=10 --statistics - name: Test with pytest run: | pip install pytest