Skip to content

Commit

Permalink
Update pylint from 2.3.1 to 2.7.4 (#5153)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored Jan 26, 2024
1 parent 3efdccb commit 0fd0f0b
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions tests/test_api_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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": "",
}
Expand Down Expand Up @@ -94,36 +92,49 @@ 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",
}


@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",
Expand All @@ -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",
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 0fd0f0b

Please sign in to comment.