Skip to content

Commit

Permalink
Update pylint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aadeyemiadl authored Mar 11, 2024
1 parent d24ced4 commit d95ead5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Pylint
on: [push]

jobs:
build:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -18,6 +18,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pylint
pip install umsgpack
pip install cryptography
pip install pylint-fail-under
#lists pyling suggestions to improve the score & pylint score of the file
- name: code review
run: find . -name '*.py' -print -exec pylint {} \;

#fails the build if one file has pylint score below 7.0
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
for file in */*.py; do pylint "$file" --fail-under=7.0; done
# - name: Analysing the code with pylint
# run: |
# pylint $(git ls-files '*.py')

0 comments on commit d95ead5

Please sign in to comment.