Skip to content

Add missing runtime dependencies to the pylint pre-commit hook - #481

Merged
psss merged 1 commit into
psss:mainfrom
ammachado:did-pylint-deps
Oct 9, 2026
Merged

psss merged 1 commit into
psss:mainfrom
ammachado:did-pylint-deps

Conversation

@ammachado

Copy link
Copy Markdown
Contributor

The pylint pre-commit hook reports import-error across the plugin
modules. import-error is not in the disable= list in .pylintrc, and
pre-commit runs each hook in its own isolated virtualenv, so the
init-hook sys.path extension only ever sees the hook's own venv.
Without these dependencies pylint cannot resolve feedparser, koji,
nitrate, bodhi-client and friends, and reports one error per plugin.

This mirrors the list the mypy hook directly below already carries. The
difference between the two is that pylint needs the real packages where
mypy wants the stubs, hence requests and python-dateutil here instead
of types-requests and types-python-dateutil.

Split out of #469.

🤖 Generated with Claude Code

@ammachado
ammachado marked this pull request as ready for review September 7, 2026 18:37
The pylint hook was reporting import-error across the plugin modules.
import-error is not in the disable= list in .pylintrc, and pre-commit
runs each hook in its own isolated virtualenv, so the init-hook sys.path
extension only ever sees the hook's own venv. Without these, pylint
cannot resolve feedparser, koji, nitrate, bodhi-client and friends, and
reports an error per plugin.

This mirrors the list the mypy hook directly below already carries. The
difference between the two is that pylint needs the real packages where
mypy wants the stubs, hence requests and python-dateutil here instead of
types-requests and types-python-dateutil.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@psss
psss force-pushed the did-pylint-deps branch from a4ec458 to ab6d4a9 Compare October 9, 2026 10:50
@psss psss added this to the 0.24 milestone Oct 9, 2026
@psss psss added the tooling label Oct 9, 2026
@psss
psss merged commit 0eca6a8 into psss:main Oct 9, 2026
17 checks passed
@psss psss self-assigned this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants