From 0fd0f0bc75a4c479722d8084939966d12bdefeec Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Fri, 26 Jan 2024 12:38:55 -0600 Subject: [PATCH] Update `pylint` from 2.3.1 to 2.7.4 (#5153) --- tests/test_api_skeleton.py | 53 +++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/tests/test_api_skeleton.py b/tests/test_api_skeleton.py index 52039b9ed4..b19a2b2dde 100644 --- a/tests/test_api_skeleton.py +++ b/tests/test_api_skeleton.py @@ -33,14 +33,12 @@ "#sha256=6cf85a5cfe8fff69553e745b05128de6fc8de8f291965c63871c79701dc6efc9" ) -PYLINT_VERSION = "2.3.1" +PYLINT_VERSION = "2.7.4" # last version to use setup.py without setup.cfg PYLINT_HASH_TYPE = "sha256" -PYLINT_HASH_VALUE = "723e3db49555abaf9bf79dc474c6b9e2935ad82230b10c1138a71ea41ac0fff1" -PYLINT_HASH_VALUE_BLAKE2 = ( - "018b538911c0ebc2529f15004f4cb07e3ca562bb9aacea5df89cc25b62e01891" -) +PYLINT_SHA256 = "bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee" +PYLINT_BLAKE2 = "2d5b491cf9e85288c29759a6535e6009938c2141b137b27a0653e435dcbad6a2" PYLINT_FILENAME = f"pylint-{PYLINT_VERSION}.tar.gz" -PYLINT_URL = f"https://files.pythonhosted.org/packages/{PYLINT_HASH_VALUE_BLAKE2[:2]}/{PYLINT_HASH_VALUE_BLAKE2[2:4]}/{PYLINT_HASH_VALUE_BLAKE2[4:]}/{PYLINT_FILENAME}" +PYLINT_URL = f"https://files.pythonhosted.org/packages/{PYLINT_BLAKE2[:2]}/{PYLINT_BLAKE2[2:4]}/{PYLINT_BLAKE2[4:]}/{PYLINT_FILENAME}" @pytest.fixture @@ -54,7 +52,7 @@ def mock_metadata(): "version": "UNKNOWN", "pypiurl": PYLINT_URL, "filename": PYLINT_FILENAME, - "digest": [PYLINT_HASH_TYPE, PYLINT_HASH_VALUE], + "digest": [PYLINT_HASH_TYPE, PYLINT_SHA256], "import_tests": "", "summary": "", } @@ -94,23 +92,30 @@ def pylint_pkginfo(): "extras_require": {':sys_platform=="win32"': ["colorama"]}, "home": "https://github.com/PyCQA/pylint", "install_requires": [ - "astroid>=2.2.0,<3", - "isort>=4.2.5,<5", - "mccabe>=0.6,<0.7", + "astroid >=2.5.2,<2.7", + "isort >=4.2.5,<6", + "mccabe >=0.6,<0.7", + "toml >=0.7.1", ], "license": "GPL", "name": "pylint", "packages": [ "pylint", "pylint.checkers", - "pylint.pyreverse", + "pylint.checkers.refactoring", + "pylint.config", "pylint.extensions", + "pylint.lint", + "pylint.message", + "pylint.pyreverse", "pylint.reporters", "pylint.reporters.ureports", + "pylint.testutils", + "pylint.utils", ], "setuptools": True, "summary": "python code static checker", - "tests_require": ["pytest"], + "tests_require": ["pytest", "pytest-benchmark"], "version": "2.3.1", } @@ -118,12 +123,18 @@ def pylint_pkginfo(): @pytest.fixture def pylint_metadata(): return { - "run_depends": ["astroid >=2.2.0,<3", "isort >=4.2.5,<5", "mccabe >=0.6,<0.7"], + "run_depends": [ + "astroid >=2.5.2,<2.7", + "isort >=4.2.5,<6", + "mccabe >=0.6,<0.7", + "toml >=0.7.1", + ], "build_depends": [ "pip", - "astroid >=2.2.0,<3", - "isort >=4.2.5,<5", + "astroid >=2.5.2,<2.7", + "isort >=4.2.5,<6", "mccabe >=0.6,<0.7", + "toml >=0.7.1", ], "entry_points": [ "pylint = pylint:run_pylint", @@ -137,18 +148,24 @@ def pylint_metadata(): "pyreverse --help", "symilar --help", ], - "tests_require": ["pytest"], + "tests_require": ["pytest", "pytest-benchmark"], "version": PYLINT_VERSION, "pypiurl": PYLINT_URL, "filename": PYLINT_FILENAME, - "digest": [PYLINT_HASH_TYPE, PYLINT_HASH_VALUE], + "digest": [PYLINT_HASH_TYPE, PYLINT_SHA256], "import_tests": [ "pylint", "pylint.checkers", + "pylint.checkers.refactoring", + "pylint.config", "pylint.extensions", + "pylint.lint", + "pylint.message", "pylint.pyreverse", "pylint.reporters", "pylint.reporters.ureports", + "pylint.testutils", + "pylint.utils", ], "summary": "python code static checker", "packagename": "pylint", @@ -297,7 +314,7 @@ def test_get_package_metadata(testing_config, mock_metadata, pylint_metadata): mock_metadata, {}, ".", - "3.7", + "3.9", False, False, [PYLINT_URL],