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