Upgrade Pylint to 4.0.0 (#3867)

This commit also removes the pylint-pydantic plug-in, which is not
yet compatible with Pylint v4.
This commit is contained in:
correctmost 2025-10-13 05:03:00 -04:00 committed by GitHub
parent b0b87400c2
commit 8fb83a7beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 5 deletions

View File

@ -14,7 +14,7 @@ jobs:
pacman --noconfirm -Syyu pacman --noconfirm -Syyu
pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc
- run: pip install --break-system-packages --upgrade pip - run: pip install --break-system-packages --upgrade pip
- name: Install Pylint and Pylint plug-ins - name: Install Pylint
run: pip install --break-system-packages .[dev] run: pip install --break-system-packages .[dev]
- run: python --version - run: python --version
- run: pylint --version - run: pylint --version

View File

@ -43,7 +43,6 @@ makedepends=(
'python-wheel' 'python-wheel'
'python-sphinx_rtd_theme' 'python-sphinx_rtd_theme'
'python-pylint' 'python-pylint'
'python-pylint-pydantic'
'ruff' 'ruff'
) )
optdepends=( optdepends=(

View File

@ -45,6 +45,8 @@ class PasswordStrength(Enum):
symbol = any(not character.isalnum() for character in password) symbol = any(not character.isalnum() for character in password)
return cls._check_password_strength(digit, upper, lower, symbol, len(password)) return cls._check_password_strength(digit, upper, lower, symbol, len(password))
# TODO: Remove the disable line when https://github.com/pylint-dev/pylint/issues/10647 is fixed
# pylint: disable=bare-name-capture-pattern
@classmethod @classmethod
def _check_password_strength( def _check_password_strength(
cls, cls,

View File

@ -35,8 +35,7 @@ dev = [
"flake8==7.3.0", "flake8==7.3.0",
"pre-commit==4.3.0", "pre-commit==4.3.0",
"ruff==0.14.0", "ruff==0.14.0",
"pylint==3.3.9", "pylint==4.0.0",
"pylint-pydantic==0.3.5",
"pytest==8.4.2", "pytest==8.4.2",
] ]
doc = ["sphinx"] doc = ["sphinx"]
@ -137,7 +136,6 @@ ignore-paths = [
"^build/", "^build/",
"^docs/", "^docs/",
] ]
load-plugins = ["pylint_pydantic"]
persistent = false persistent = false
py-version = "3.12" py-version = "3.12"
recursive = true recursive = true