From cc6508bb7ba455faa8c1b390a863dfcc26ed4ca4 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Sat, 25 Feb 2023 02:33:36 +0100 Subject: [PATCH] Add Qt to pylint extension-pkg-allow-list & simplify action --- .github/workflows/pylint.yml | 2 +- .pylintrc | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 9856069..b42a8ec 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -17,4 +17,4 @@ jobs: - name: Run Pylint run: | cd .. - PYLINTRC=pesterchum-alt-servers/.pylintrc python -m pylint --recursive=y pesterchum-alt-servers + python -m pylint "$PWD" diff --git a/.pylintrc b/.pylintrc index ffef98c..80d3563 100644 --- a/.pylintrc +++ b/.pylintrc @@ -20,13 +20,7 @@ analyse-fallback-blocks=no # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code. -extension-pkg-allow-list= - -# A comma-separated list of package or module names from where C extensions may -# be loaded. Extensions are loading into the active Python interpreter and may -# run arbitrary code. (This is an alternative name to extension-pkg-allow-list -# for backward compatibility.) -extension-pkg-whitelist=seccomp +extension-pkg-allow-list=PyQt6,PyQt5,seccomp # Return non-zero exit code if any of these messages/categories are detected, # even if score is above --fail-under value. Syntax same as enable. Messages @@ -83,7 +77,7 @@ persistent=yes py-version=3.8 # Discover python modules and packages in the file system subtree. -recursive=no +recursive=yes # When enabled, pylint would attempt to guess common misconfiguration and emit # user-friendly hints instead of false-positive error messages.