Skip to content

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

Open
ammachado wants to merge 1 commit into
psss:mainfrom
ammachado:did-pylint-deps
Open

Add missing runtime dependencies to the pylint pre-commit hook#481
ammachado wants to merge 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

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>
@ammachado
ammachado marked this pull request as ready for review September 7, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants