René's URL Explorer Experiment


Title: test(coverage): omit pure typing module commitizen/question.py by bearomorphism · Pull Request #1988 · commitizen-tools/commitizen · GitHub

Open Graph Title: test(coverage): omit pure typing module commitizen/question.py by bearomorphism · Pull Request #1988 · commitizen-tools/commitizen

X Title: test(coverage): omit pure typing module commitizen/question.py by bearomorphism · Pull Request #1988 · commitizen-tools/commitizen

Description: Description Excludes commitizen/question.py from coverage reporting by adding it to the [tool.coverage.report].omit list in pyproject.toml. commitizen/question.py defines TypedDicts (Choice, ListQuestion, InputQuestion, ConfirmQuestion), Literal discriminators, and the CzQuestion union — pure static-typing constructs with no runtime code paths to exercise. Coverage therefore reports the file as 0%, which is misleading: the lines do not represent untested logic, they represent type definitions whose only consumers are type checkers. How Add ''commitizen/question.py'' to the omit list under [tool.coverage.report] in pyproject.toml. Why Removes a misleading 0% coverage row for a file that has no runtime behavior to test. Aligns the coverage report with the file''s actual purpose (typing-only). Discussed in #1904 and agreed there. What One-line addition to pyproject.toml. No source/test code changes. Verification Ran uv run poe cover locally; commitizen/question.py no longer appears in the coverage report. TOTAL coverage rises from the previous baseline accordingly (now 99%). Ran uv run poe lint — ruff check and mypy both pass. Ran uv run poe format — no files changed. Checklist I have read the contributing guidelines Was generative AI tooling used to co-author this PR? Yes (please specify the tool below) Generated-by: GitHub Copilot CLI (Claude Opus 4.7) following the guidelines Code Changes Add test cases to all the changes you introduce — N/A (configuration-only change to coverage tool) Run uv run poe all locally to ensure this change passes linter check and tests Manually test the changes: Verify the feature/bug fix works as expected in real-world scenarios — confirmed question.py is no longer reported by uv run poe cover Test edge cases and error conditions — N/A Ensure backward compatibility is maintained — coverage tool config only; no runtime impact Document any manual testing steps performed — see Steps to Test below Update the documentation for the changes — N/A (no user-facing behavior change) Documentation Changes N/A. Expected Behavior After this change, uv run poe cover no longer lists commitizen/question.py as 0% covered, because it is excluded from the coverage report along with the other entries in the omit list. Steps to Test This Pull Request uv sync --frozen --group base --group test --group linters uv run poe cover Confirm that commitizen/question.py does not appear in the coverage report (previously it appeared as 7 7 0%). Additional Context Closes #1904.

Open Graph Description: Description Excludes commitizen/question.py from coverage reporting by adding it to the [tool.coverage.report].omit list in pyproject.toml. commitizen/question.py defines TypedDicts (Choice, ListQu...

X Description: Description Excludes commitizen/question.py from coverage reporting by adding it to the [tool.coverage.report].omit list in pyproject.toml. commitizen/question.py defines TypedDicts (Choice, ListQu...

Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1988

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:58eb9a6a-b222-5794-8e99-3eafefd22587
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB122:10E65B:1C0A6F9:25CF31C:6A506D98
html-safe-nonce9f388ba3bd347ec23c6a9e284c6c67fc660bb0b26dbc1f437f11c715f00d4c27
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTIyOjEwRTY1QjoxQzBBNkY5OjI1Q0YzMUM6NkE1MDZEOTgiLCJ2aXNpdG9yX2lkIjoiNDk0NDM5MjAyMzk1ODM4NDAyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2e01b5ce06719b79d29837765323bbe3de47369b399c7a25a7ebce91a386745a
hovercard-subject-tagpull_request:3656422586
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/1988/files
twitter:imagehttps://avatars.githubusercontent.com/u/26526132?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/26526132?s=400&v=4
og:image:altDescription Excludes commitizen/question.py from coverage reporting by adding it to the [tool.coverage.report].omit list in pyproject.toml. commitizen/question.py defines TypedDicts (Choice, ListQu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1988/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1988%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1988%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1988/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1988/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1988/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 344 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
bearomorphismhttps://github.com/bearomorphism
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
bearomorphism:fix/1904-question-coveragehttps://github.com/bearomorphism/commitizen/tree/fix/1904-question-coverage
Conversation 2 https://github.com/commitizen-tools/commitizen/pull/1988
Commits 1 https://github.com/commitizen-tools/commitizen/pull/1988/commits
Checks 18 https://github.com/commitizen-tools/commitizen/pull/1988/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1988/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
test(coverage): omit pure typing module commitizen/question.py https://github.com/commitizen-tools/commitizen/pull/1988/files#top
Show all changes 1 commit https://github.com/commitizen-tools/commitizen/pull/1988/files
8452b85 test(coverage): omit pure typing module commitizen/question.py bearomorphism May 10, 2026 https://github.com/commitizen-tools/commitizen/pull/1988/commits/8452b85e0f837eee7c0d864fb1a6fd0e7f678ff3
Clear filters https://github.com/commitizen-tools/commitizen/pull/1988/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
pyproject.tomlhttps://github.com/commitizen-tools/commitizen/pull/1988/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/commitizen-tools/commitizen/blob/8452b85e0f837eee7c0d864fb1a6fd0e7f678ff3/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1988/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1988/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
Lee-Whttps://github.com/Lee-W
May 11, 2026https://github.com/commitizen-tools/commitizen/pull/1988/files#r3219676509
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
bearomorphismhttps://github.com/bearomorphism
May 12, 2026https://github.com/commitizen-tools/commitizen/pull/1988/files#r3223229541
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
https://github.com/commitizen-tools/commitizen/pull/1988/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1988/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.