From 3216aadc3dc8a2c9213ce4b078324cf67d72fc25 Mon Sep 17 00:00:00 2001 From: Alan Jui Date: Sat, 7 Sep 2024 13:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=96=84=20GitHub=20Actions=20?= =?UTF-8?q?=E5=9F=B7=E8=A1=8C=20Build=20=E4=BD=9C=E6=A5=AD=EF=BC=8C?= =?UTF-8?q?=E6=9C=83=E5=87=BA=E7=8F=BE=20pylint=20=E7=84=A1=E6=B3=95?= =?UTF-8?q?=E9=80=9A=E9=81=8E=E7=9A=84=E5=95=8F=E9=A1=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pylint.yml | 3 ++- .pylintrc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index ced26fb..0ce1f05 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,4 +20,5 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') + # pylint $(git ls-files '*.py') + pylint --disable=all --enable=F,E $(git ls-files '*.py') diff --git a/.pylintrc b/.pylintrc index 67fee63..916d9ca 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,6 +6,8 @@ ignore=tests.py, urls.py, migrations #django-settings-module=mysite.settings [MESSAGES CONTROL] +; disable=all +; enable=F,E # C0111 Missing docstring # C0114(missing-module-docstring) Missing module docstring # I0011 Warning locally suppressed using disable-msg @@ -54,6 +56,8 @@ disable=raw-checker-failed, [REPORTS] +; output-format=text +; msg-template={msg_id}: {msg} ({symbol}) at {path}:{line} msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} [BASIC]