Skip to content

logic inverted for proper functionality #325

logic inverted for proper functionality

logic inverted for proper functionality #325

Workflow file for this run

name: Pylint
on:
push:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.x]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install PortAudio
run: sudo apt-get install -y portaudio19-dev
- name: Install Dependencies and Pylint
run: |
python -m pip install --upgrade pip
pip install pylint
pip install --upgrade setuptools wheel
pip install -r requirements.txt
- name: Analysing the code with pylint and handling exit code
id: lint
run: |
for file in $(git ls-files '*.py')
do
pylint --disable=import-error,R,wildcard-import,unused-wildcard-import,attribute-defined-outside-init --max-line-length=115 --fail-under=9.0 $file || lint_failed="failed"
done
if [ "$lint_failed" = "failed" ]
then
exit 1
fi