Skip to content

Fix the linters broken by tool upgrades - #10

Closed
gaborbernat wants to merge 4 commits into
mainfrom
maintenance/lint-upgrades
Closed

gaborbernat wants to merge 4 commits into
mainfrom
maintenance/lint-upgrades

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What do these changes do?

The linters on main fail in both the push and the nightly runs, after hook and dependency upgrades rather than any code change:

  • flake8 rejects the hook signature line as too long, because ruff rewrote its noqa comment into a longer ruff: ignore one. The plugin no longer takes the core configuration argument it never used, so neither suppression is needed: pluggy passes a hook implementation only the arguments it names.
  • ruff now flags the autouse fixture that hides the user's tox configuration. The fixture is listed in pytest.ini's usefixtures instead, and keeps its own monkeypatch, because pytest starts it before tox's check that a test leaves the environment unchanged.
  • pylint crashes on every module because pylint-pytest does not support pytest 9.2 yet (pylint-dev/pylint-pytest#163). The pylint hook keeps pytest below 9.2 until it does.
  • Coverage processing fails on every run, main included: the step that tells Codecov all uploads are in sends no token, and Codecov requires one for branches of this repository. It now passes the same CODECOV_TOKEN the upload steps already use.

Each fix is its own commit; the hook constraint can move to a separate PR if you prefer.

Are there changes in behavior for the user?

No.

Is it a substantial burden for the maintainers to support this?

The pytest constraint on the pylint hook needs removing once pylint-pytest#163 is fixed.

Related issue number

None.

Checklist

🤖 Produced by a probabilistic agent with a token generator using an LLM to sound convincing.

pluggy passes a hook implementation only the arguments it names, so
the plugin no longer has to accept the core configuration set it never
reads. That also removes the two suppression comments, which ruff
rewrote into a line flake8 now rejects as too long.

Assisted-by: LLM
Ruff now flags autouse fixtures. Listing the fixture in pytest's
`usefixtures` setting keeps it applied to every test. That setting
starts it before tox's own environment check, so the fixture now keeps
its own monkeypatch and restores the environment after that check.

Assisted-by: LLM
pylint-pytest crashes on any module under pytest 9.2, which broke the
pylint hook. The constraint stays until the plugin supports it:
pylint-dev/pylint-pytest#163

Assisted-by: LLM
@agentscanapp

agentscanapp Bot commented Nov 6, 2026

Copy link
Copy Markdown

Automation signals

Activity patterns show signs of automation.

View full analysis →

Report this account →

Evidence
  • High PR volume (weekly): 97 PRs within a single 7-day window
  • Very high PR volume (daily): 97 PRs within a single 24-hour window

Last 5 PRs:

This is an automated analysis by AgentScan

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@gaborbernat gaborbernat closed this Nov 6, 2026
@gaborbernat

Copy link
Copy Markdown
Member Author

Closing: these lint fixes are out of scope for now.

@gaborbernat
gaborbernat deleted the maintenance/lint-upgrades branch November 6, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant