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:
parent
b0b87400c2
commit
8fb83a7beb
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
pacman --noconfirm -Syyu
|
||||
pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc
|
||||
- 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: python --version
|
||||
- run: pylint --version
|
||||
|
|
|
|||
1
PKGBUILD
1
PKGBUILD
|
|
@ -43,7 +43,6 @@ makedepends=(
|
|||
'python-wheel'
|
||||
'python-sphinx_rtd_theme'
|
||||
'python-pylint'
|
||||
'python-pylint-pydantic'
|
||||
'ruff'
|
||||
)
|
||||
optdepends=(
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ class PasswordStrength(Enum):
|
|||
symbol = any(not character.isalnum() for character in 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
|
||||
def _check_password_strength(
|
||||
cls,
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@ dev = [
|
|||
"flake8==7.3.0",
|
||||
"pre-commit==4.3.0",
|
||||
"ruff==0.14.0",
|
||||
"pylint==3.3.9",
|
||||
"pylint-pydantic==0.3.5",
|
||||
"pylint==4.0.0",
|
||||
"pytest==8.4.2",
|
||||
]
|
||||
doc = ["sphinx"]
|
||||
|
|
@ -137,7 +136,6 @@ ignore-paths = [
|
|||
"^build/",
|
||||
"^docs/",
|
||||
]
|
||||
load-plugins = ["pylint_pydantic"]
|
||||
persistent = false
|
||||
py-version = "3.12"
|
||||
recursive = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue