Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2021-11-02 19:52:35 +0300
committerlovetox <philipp@hoerist.com>2021-11-02 19:52:54 +0300
commit4ac748d48c83015c894dac32bfaf660e476306d5 (patch)
tree705e6bb2e4343046598cef856847bd9f72bb668f /scripts
parent6ddcf4bb22b7a9318fb91a5fa3194225a1fc0013 (diff)
Update pylint.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/pylint.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/ci/pylint.sh b/scripts/ci/pylint.sh
index 593c6b05f..d45f82ff6 100755
--- a/scripts/ci/pylint.sh
+++ b/scripts/ci/pylint.sh
@@ -5,18 +5,21 @@ set -e
PYLINT=${PYLINT:-pylint}
+IGNORE_ALWAYS='R0801,C0209'
+
IGNORE_ERRORS=C0103,C0302,C0301,C0330,C0411,C0415,E0401,E0611,E1101,E1133,E1136,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0603,W0613
IGNORE_GTK_MODULE_ERRORS=C0103,C0301,C0330,C0415,E0401,E0611,E1101,E1133,E1136,R0201,R0904,R0915,R1710,W0201,W0212,W0233,W0221,W0613
"$PYLINT" --version
-"$PYLINT" --disable=$IGNORE_ERRORS --ignore=modules,dbus,gtk "$@"
-"$PYLINT" --disable=$IGNORE_GTK_MODULE_ERRORS "$@/gtk"
-"$PYLINT" --disable=E0401,C0415 "$@/common/modules"
-"$PYLINT" "$@/common/dbus"
+"$PYLINT" --disable="$IGNORE_ALWAYS,$IGNORE_ERRORS" --ignore=modules,dbus,gtk "$@"
+"$PYLINT" --disable="$IGNORE_ALWAYS,$IGNORE_GTK_MODULE_ERRORS" "$@/gtk"
+"$PYLINT" --disable="$IGNORE_ALWAYS,E0401,C0415" "$@/common/modules"
+"$PYLINT" --disable=$IGNORE_ALWAYS "$@/common/dbus"
# C0103 invalid-name
+# C0209 use-f-string
# C0301 line-too-long
# C0302 too-many-lines
# C0330 bad-continuation
@@ -27,6 +30,7 @@ IGNORE_GTK_MODULE_ERRORS=C0103,C0301,C0330,C0415,E0401,E0611,E1101,E1133,E1136,R
# E1133 not-an-iterable
# E1136 unsubscriptable-object
# R0201 no-self-use
+# R0801 duplicat-code
# R0901 too-many-ancestors
# R0904 too-many-public-methods
# R0913 too-many-arguments