Skip to content

Commit

Permalink
Add flake8 step in the build pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: mgoerens <[email protected]>
  • Loading branch information
mgoerens committed Aug 3, 2023
1 parent 8804cc8 commit f6ff19e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -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,
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6ff19e

Please sign in to comment.