From 04424c97ef7494d1e67c2ec905e8358ecd59d186 Mon Sep 17 00:00:00 2001 From: Neil Munday Date: Wed, 9 Oct 2024 23:38:38 +0100 Subject: [PATCH] fix: Remove pylint too-many-positional-arguments option when running Python < 3.9 --- .github/workflows/pylint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 2927f34..46a3657 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -46,6 +46,10 @@ jobs: pip install requests pip install setuptools pip install typing-extensions + - name: Remove too-many-positional-arguments if Python < 3.9 + run: | + sed -i 's/too-many-positional-arguments,//' $(git ls-files '*.py') + if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' || matrix.python-version == '3.8' }} - name: Analysing the code with pylint for Python 3.6 run: | pylint --disable=duplicate-code,no-self-use $(git ls-files '*.py')