Skip to content

Pin pytest below 9 until pytest-pylint supports it#4

Merged
Maximilian-Nesslauer merged 1 commit into
masterfrom
pin-pytest-8
Jul 4, 2026
Merged

Pin pytest below 9 until pytest-pylint supports it#4
Maximilian-Nesslauer merged 1 commit into
masterfrom
pin-pytest-8

Conversation

@Maximilian-Nesslauer

Copy link
Copy Markdown
Member

What

Pins pytest below 9 in the test and development extras.

Why

A fresh pip install .[test] now resolves pytest 9.x, and pytest-pylint 0.21.0 registers a hookimpl with the legacy path parameter that pytest 9 removed, so every run dies with an INTERNALERROR at plugin registration before a single test is collected (carsongee/pytest-pylint#197). All four CI jobs fail on any cold run because of this, see #3. pytest-pylint has no compatible release (latest is from Oct 2023 and the issue is open in its master too), so the alternatives are this pin or dropping pytest-pylint, and the latter is an upstream maintenance decision.

Upstream KSP-CKAN/NetKAN-Infra will hit the same failure on its next CI run (its last one predates pytest 9), so this is also a candidate for a small standalone upstream PR.

Testing

The full suite is green with pytest 8.3.5 on Python 3.12 (284 passed locally); the CI runs on this PR exercise the pin directly.

pytest 9 removed the legacy 'path' hook parameter that pytest-pylint 0.21.0 still declares, so every run dies at plugin registration (carsongee/pytest-pylint#197); no compatible pytest-pylint release exists.
@Maximilian-Nesslauer Maximilian-Nesslauer added the infrastructure Work on the KSA CKAN infrastructure (bot, tester, status page) label Jul 4, 2026
@Maximilian-Nesslauer
Maximilian-Nesslauer merged commit eae3dfa into master Jul 4, 2026
4 checks passed
@Maximilian-Nesslauer
Maximilian-Nesslauer deleted the pin-pytest-8 branch July 4, 2026 17:46
@Maximilian-Nesslauer
Maximilian-Nesslauer restored the pin-pytest-8 branch July 4, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Work on the KSA CKAN infrastructure (bot, tester, status page)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants