From f6ff19e72da6e27704e7b814dae058e99ab56c32 Mon Sep 17 00:00:00 2001 From: mgoerens Date: Thu, 3 Aug 2023 14:40:15 +0200 Subject: [PATCH] Add flake8 step in the build pipeline Signed-off-by: mgoerens --- .flake8 | 7 +++++++ .github/workflows/build.yaml | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..f338d003 --- /dev/null +++ b/.flake8 @@ -0,0 +1,7 @@ +[flake8] +# Recommend matching the black line length (default 88), +# rather than using the flake8 default of 79: +max-line-length = 88 +extend-ignore = + # See https://github.com/PyCQA/pycodestyle/issues/373 + E203, diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ccd0127f..f8d4423a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -71,6 +71,13 @@ jobs: cd scripts && ../ve1/bin/pip3 install -r requirements.txt && cd .. cd scripts && ../ve1/bin/python3 setup.py install && cd .. + - name: Run flake8 + working-directory: ./chart-verifier + run: | + ve1/bin/pip3 install flake8 + ve1/bin/flake8 scripts/ + ve1/bin/flake8 tests/ + - name: Check if only release file in PR working-directory: ./chart-verifier id: check_version_in_PR