Skip to content

Keep requests package mapping lowercase#533

Open
StantonMatt wants to merge 1 commit into
bndr:masterfrom
StantonMatt:fix-requests-package-case
Open

Keep requests package mapping lowercase#533
StantonMatt wants to merge 1 commit into
bndr:masterfrom
StantonMatt:fix-requests-package-case

Conversation

@StantonMatt

@StantonMatt StantonMatt commented Jun 1, 2026

Copy link
Copy Markdown

Summary

  • update the requests import mapping to emit the lowercase PyPI package name
  • add a regression test for get_pkg_names(['requests'])

Fixes #500.

Verification

  • uv run --with-editable . python -m unittest tests.test_pipreqs.TestPipreqs.test_get_pkg_names_keeps_requests_lowercase
  • uv run --with flake8 python -m unittest discover
  • uv run --with flake8 flake8 pipreqs tests
  • git diff --check
  • review-fix-loop clean

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.

Wrongly capitalizes module name: "Requests"

1 participant