pylint: update to 3.3.7.

This commit is contained in:
Gonzalo Tornaría 2025-03-06 20:04:14 -03:00 committed by Duncan Overbruck
parent a88fb77f78
commit 6524c4b329
2 changed files with 28 additions and 14 deletions

View file

@ -0,0 +1,21 @@
--- a/tests/primer/test_primer_stdlib.py
+++ b/tests/primer/test_primer_stdlib.py
@@ -15,6 +15,7 @@
from pytest import CaptureFixture
from pylint.testutils._run import _Run as Run
+from pylint.testutils.utils import _test_cwd
def is_module(filename: str) -> bool:
@@ -53,8 +54,8 @@
) -> None:
"""Test that pylint does not produce any crashes or fatal errors on stdlib modules."""
__tracebackhide__ = True # pylint: disable=unused-variable
- os.chdir(test_module_location)
- with _patch_stdout(io.StringIO()):
+ with _test_cwd(test_module_location):
+ with _patch_stdout(io.StringIO()):
try:
# We want to test all the code we can
enables = ["--enable-all-extensions", "--enable=all"]

View file

@ -1,28 +1,21 @@
# Template file for 'pylint'
pkgname=pylint
version=3.3.4
version=3.3.7
revision=1
build_style=python3-pep517
make_build_args="--skip-dependency-check"
make_check_args="--deselect=tests/benchmark/test_baseline_benchmarks.py"
hostmakedepends="python3-wheel"
make_check_args="--primer-stdlib"
hostmakedepends="python3-setuptools"
depends="python3-astroid python3-isort python3-mccabe python3-tomlkit
python3-platformdirs python3-dill"
checkdepends="$depends python3-pytest python3-tkinter python3-six
python3-GitPython git"
checkdepends="$depends python3-pytest python3-pytest-benchmark
python3-coverage python3-GitPython python3-typing_extensions
python3-requests python3-enchant hunspell-en"
short_desc="Python code static checker"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://pylint.pycqa.org"
distfiles="https://github.com/PyCQA/pylint/archive/refs/tags/v$version.tar.gz"
checksum=bdb1f2218222df18d1b1336686d81f5e0a03de28acaa3092fae9fbe660ca76db
do_check() {
# FIXME: run upstream test suite
# for now, let's just try to verify that pylint can run and dependencies
# are correct
PYTHONPATH=. python3 -m pylint --version
}
checksum=a10501d89b9257720844481b21a16137f7880af793971bdf871f78712f75b5ee
post_install() {
# install example config and emacs files