From 3a80564408db1b7382f15012a17d9f9d27e8f67f Mon Sep 17 00:00:00 2001 From: Alan Jui Date: Sat, 7 Sep 2024 13:17:55 +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 | 2 +- .pylintrc | 58 ++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 4e848df..ced26fb 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,4 +20,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint --disable=all --enable=F,E $(git ls-files '*.py') + pylint $(git ls-files '*.py') diff --git a/.pylintrc b/.pylintrc index c900ea2..5537c44 100644 --- a/.pylintrc +++ b/.pylintrc @@ -25,35 +25,35 @@ ignore=tests.py, urls.py, migrations # E501(flake8): line too long ( > 79 characters ) # disable=C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,C1001,C0103,R0901,E501 # -# disable=all -# enable=F,E -disable=raw-checker-failed, - bad-inline-option, - locally-disabled, - file-ignored, - suppressed-message, - useless-suppression, - deprecated-pragma, - use-symbolic-message-instead, - too-many-instance-attributes, - len-as-condition, - too-few-public-methods, - anomalous-backslash-in-string, - no-else-return, - simplifiable-if-statement, - too-many-arguments, - duplicate-code, - no-name-in-module, - no-member, - import-error, - missing-module-docstring, - missing-docstring, - invalid-name, - redefined-outer-name, - bare-except, - unknown-option-value, - unused-variable, - consider-using-enumerate +disable=all +enable=F,E +; disable=raw-checker-failed, +; bad-inline-option, +; locally-disabled, +; file-ignored, +; suppressed-message, +; useless-suppression, +; deprecated-pragma, +; use-symbolic-message-instead, +; too-many-instance-attributes, +; len-as-condition, +; too-few-public-methods, +; anomalous-backslash-in-string, +; no-else-return, +; simplifiable-if-statement, +; too-many-arguments, +; duplicate-code, +; no-name-in-module, +; no-member, +; import-error, +; missing-module-docstring, +; missing-docstring, +; invalid-name, +; redefined-outer-name, +; bare-except, +; unknown-option-value, +; unused-variable, +; consider-using-enumerate [REPORTS]