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 7, 2023
1 parent 8804cc8 commit a083886
Show file tree
Hide file tree
Showing 2 changed files with 16 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,
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ 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: |
python3 -m venv ve_flake8
source ve_flake8/bin/activate
pip3 install flake8
flake8 scripts/
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 a083886

Please sign in to comment.