From d95ead5d5e41676dc74f316283c4935d9264df2d Mon Sep 17 00:00:00 2001 From: aadeyemiadl <147636785+aadeyemiadl@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:16:40 -0400 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 383e65cd..f537f937 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -3,7 +3,7 @@ name: Pylint on: [push] jobs: - build: + linting: runs-on: ubuntu-latest strategy: matrix: @@ -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')