From 27b39d01b8df5599115379d50661bb7fca623a37 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Fri, 20 Oct 2023 00:37:10 +0200
Subject: [PATCH] Update pylint to v2.16.2 for python3.11 compatibility

---
 .gitlab-ci.yml |  3 +--
 .pylintrc      | 11 ++---------
 uffd-ldapd     |  2 +-
 3 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3decd7b..9810d72 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ variables:
   GIT_SUBMODULE_STRATEGY: normal
   APT_API_URL: https://packages.cccv.de
   APT_REPO: uffd
-  PYLINT_PIN: pylint~=2.10.0
+  PYLINT_PIN: pylint~=2.16.2
 
 before_script:
   - python3 -V
@@ -13,7 +13,6 @@ before_script:
   - uname -a
   - python3 -m pylint --version
   - python3 -m coverage --version
-  - echo "${CI_COMMIT_TAG}" | grep -qE "v[0-9]+[.][0-9]+[.][0-9]+.*" && export PACKAGE_VERSION="${CI_COMMIT_TAG#v}" || export PACKAGE_VERSION="${CI_COMMIT_SHA}"
 
 .build:
   stage: build
diff --git a/.pylintrc b/.pylintrc
index 86c7c86..fae5130 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -380,13 +380,6 @@ max-line-length=160
 # Maximum number of lines in a module.
 max-module-lines=1000
 
-# List of optional constructs for which whitespace checking is disabled. `dict-
-# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
-# `trailing-comma` allows a space between comma and closing bracket: (a, ).
-# `empty-line` allows space-only lines.
-no-space-check=trailing-comma,
-               dict-separator
-
 # Allow the body of a class to be on the same line as the declaration if body
 # contains single statement.
 single-line-class-stmt=no
@@ -507,5 +500,5 @@ min-public-methods=2
 
 # Exceptions that will emit a warning when being caught. Defaults to
 # "BaseException, Exception".
-overgeneral-exceptions=BaseException,
-                       Exception
+overgeneral-exceptions=builtin.BaseException,
+                       builtin.Exception
diff --git a/uffd-ldapd b/uffd-ldapd
index 10fad3f..6beac0b 100755
--- a/uffd-ldapd
+++ b/uffd-ldapd
@@ -326,6 +326,6 @@ def main(socket_address, socket_path, socket_fd, api_url, api_user, api_secret,
 	server.serve_forever()
 
 if __name__ == '__main__':
-	# Pylint does not seem to understand the click's decorators
+	# Pylint does not seem to understand click's decorators
 	# pylint: disable=unexpected-keyword-arg,no-value-for-parameter
 	main(auto_envvar_prefix='SERVER')
-- 
GitLab