René's URL Explorer Experiment


Title: refactor: improve types and avoid nested loop, add types for untyped functions by bearomorphism · Pull Request #1466 · commitizen-tools/commitizen · GitHub

Open Graph Title: refactor: improve types and avoid nested loop, add types for untyped functions by bearomorphism · Pull Request #1466 · commitizen-tools/commitizen

X Title: refactor: improve types and avoid nested loop, add types for untyped functions by bearomorphism · Pull Request #1466 · commitizen-tools/commitizen

Description: Description Performance improvement: make possible_tags a set[str] to avoid linear-time search for each candidate tag. Types: make the return type more strict (e.g. from Sequence to list) and make the parameter type as abstract as possible (e.g. from list to Sequence or Iterable) Add types for all untyped functions except smart_open. Added some # type: ignore to bypass mypy check. We can address those potential errors in the future? Added some cast also for bypassing mypy check. Make some methods protected. Make ruff rules more strict. Add types for dictionary arguments in commands. Note that I didn't run mypy --disallow-untyped-defs tests/ because typing tests/ does not help much for development. Before (4b6b3fb) Very long error messages after running mypy commitizen-py3.13➜ commitizen git:(master) mypy commitizen/ tests/ commitizen/config/base_config.py:10: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/config/base_config.py:12: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/exceptions.py:45: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:96: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:98: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:100: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:101: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:102: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:104: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:114: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:115: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:116: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:141: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:142: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:164: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:165: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:168: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:229: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] Success: no issues found in 109 source files commitizen-py3.13➜ commitizen git:(master) mypy --disallow-untyped-defs commitizen commitizen/out.py:11: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/out.py:16: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/out.py:36: error: Function is missing a return type annotation [no-untyped-def] commitizen/config/base_config.py:9: error: Function is missing a return type annotation [no-untyped-def] commitizen/config/base_config.py:9: note: Use "-> None" if function does not return a value commitizen/config/base_config.py:10: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/config/base_config.py:12: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/config/base_config.py:22: error: Function is missing a type annotation [no-untyped-def] commitizen/providers/base_provider.py:32: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/base_provider.py:61: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/base_provider.py:69: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/base_provider.py:82: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/base_provider.py:90: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/poetry_provider.py:18: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/commitizen_provider.py:14: error: Function is missing a return type annotation [no-untyped-def] commitizen/providers/cargo_provider.py:31: error: Function is missing a return type annotation [no-untyped-def] commitizen/exceptions.py:43: error: Function is missing a type annotation [no-untyped-def] commitizen/exceptions.py:45: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/exceptions.py:53: error: Function is missing a type annotation [no-untyped-def] commitizen/exceptions.py:60: error: Function is missing a type annotation [no-untyped-def] commitizen/cmd.py:31: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/git.py:39: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/git.py:46: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/git.py:63: error: Function is missing a return type annotation [no-untyped-def] commitizen/git.py:66: error: Function is missing a type annotation [no-untyped-def] commitizen/git.py:71: error: Function is missing a type annotation [no-untyped-def] commitizen/git.py:76: error: Function is missing a type annotation [no-untyped-def] commitizen/git.py:80: error: Function is missing a return type annotation [no-untyped-def] commitizen/git.py:163: error: Function is missing a return type annotation [no-untyped-def] commitizen/git.py:291: error: Function is missing a type annotation [no-untyped-def] commitizen/cz/base.py:79: error: Function is missing a return type annotation [no-untyped-def] commitizen/hooks.py:9: error: Function is missing a type annotation [no-untyped-def] commitizen/config/yaml_config.py:20: error: Function is missing a return type annotation [no-untyped-def] commitizen/config/yaml_config.py:20: note: Use "-> None" if function does not return a value commitizen/config/yaml_config.py:44: error: Function is missing a type annotation [no-untyped-def] commitizen/config/toml_config.py:20: error: Function is missing a return type annotation [no-untyped-def] commitizen/config/toml_config.py:20: note: Use "-> None" if function does not return a value commitizen/config/toml_config.py:33: error: Function is missing a type annotation [no-untyped-def] commitizen/config/json_config.py:19: error: Function is missing a return type annotation [no-untyped-def] commitizen/config/json_config.py:19: note: Use "-> None" if function does not return a value commitizen/config/json_config.py:23: error: Function is missing a type annotation [no-untyped-def] commitizen/cz/utils.py:9: error: Function is missing a type annotation [no-untyped-def] commitizen/cz/utils.py:15: error: Function is missing a type annotation [no-untyped-def] commitizen/changelog.py:66: error: Function is missing a return type annotation [no-untyped-def] commitizen/changelog.py:66: note: Use "-> None" if function does not return a value commitizen/changelog.py:166: error: Function is missing a return type annotation [no-untyped-def] commitizen/changelog.py:221: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/providers/scm_provider.py:26: error: Function is missing a return type annotation [no-untyped-def] commitizen/cz/conventional_commits/conventional_commits.py:12: error: Function is missing a type annotation [no-untyped-def] commitizen/cz/conventional_commits/conventional_commits.py:23: error: Function is missing a type annotation [no-untyped-def] commitizen/commands/list_cz.py:9: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/list_cz.py:12: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/list_cz.py:12: note: Use "-> None" if function does not return a value commitizen/commands/schema.py:8: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/schema.py:12: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/schema.py:12: note: Use "-> None" if function does not return a value commitizen/commands/init.py:82: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/init.py:88: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/init.py:88: note: Use "-> None" if function does not return a value commitizen/commands/init.py:210: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/init.py:305: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/init.py:326: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/init.py:372: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/info.py:8: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/info.py:12: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/info.py:12: note: Use "-> None" if function does not return a value commitizen/commands/example.py:8: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/example.py:12: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/example.py:12: note: Use "-> None" if function does not return a value commitizen/commands/commit.py:95: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/commit.py:95: note: Use "-> None" if function does not return a value commitizen/commands/commit.py:96: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:98: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:100: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:101: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:102: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:104: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:114: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:115: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:116: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:141: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/commit.py:142: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/check.py:20: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/check.py:51: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/check.py:51: note: Use "-> None" if function does not return a value commitizen/commands/check.py:64: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/check.py:64: note: Use "-> None" if function does not return a value commitizen/commands/check.py:100: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/version.py:13: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/version.py:19: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/version.py:19: note: Use "-> None" if function does not return a value commitizen/commands/changelog.py:31: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/commands/changelog.py:135: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/changelog.py:153: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/changelog.py:153: note: Use "-> None" if function does not return a value commitizen/commands/changelog.py:158: error: Function is missing a return type annotation [no-untyped-def] commitizen/commands/changelog.py:164: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:165: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:168: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/commands/changelog.py:229: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] commitizen/cli.py:47: error: Function is missing a return type annotation [no-untyped-def] commitizen/cli.py:552: error: Function is missing a return type annotation [no-untyped-def] commitizen/cli.py:552: error: Function is missing a type annotation for one or more arguments [no-untyped-def] commitizen/cli.py:598: error: Function is missing a return type annotation [no-untyped-def] commitizen/cli.py:598: note: Use "-> None" if function does not return a value Found 71 errors in 28 files (checked 57 source files) After commitizen-py3.13➜ commitizen git:(better-type) mypy commitizen/ tests/ Success: no issues found in 110 source files commitizen-py3.13➜ commitizen git:(better-type) mypy --disallow-untyped-defs commitizen Success: no issues found in 57 source files Checklist I have read the contributing guidelines Code Changes Add test cases to all the changes you introduce Run poetry 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 Test edge cases and error conditions Ensure backward compatibility is maintained Document any manual testing steps performed Update the documentation for the changes

Open Graph Description: Description Performance improvement: make possible_tags a set[str] to avoid linear-time search for each candidate tag. Types: make the return type more strict (e.g. from Sequence to list) and make...

X Description: Description Performance improvement: make possible_tags a set[str] to avoid linear-time search for each candidate tag. Types: make the return type more strict (e.g. from Sequence to list) and make...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a77d4acc-f003-4d67-29ce-f67c9b2e3c5b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id97D2:1D90CC:4C02EDF:6BB9F38:6A4FD38C
html-safe-nonce4f7771f0ae9e1163bf34e86e44a67134a3f468fb442eaa3851b40d71069db36b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0QyOjFEOTBDQzo0QzAyRURGOjZCQjlGMzg6NkE0RkQzOEMiLCJ2aXNpdG9yX2lkIjoiMjI1Mjk4OTQwNTQ0NTczOTQwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf67f1a1647f5999539161c817103f4d7f9ea1d6969138e7a8abaa8592301893f
hovercard-subject-tagpull_request:2552335240
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/1466/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 Performance improvement: make possible_tags a set[str] to avoid linear-time search for each candidate tag. Types: make the return type more strict (e.g. from Sequence to list) and make...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release142593e66413bbae27fd485859993597d5a3b104
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1466/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1466%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%2F1466%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/1466/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1466/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1466/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/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
Lee-Whttps://github.com/Lee-W
commitizen-tools:refactorshttps://github.com/commitizen-tools/commitizen/tree/refactors
bearomorphism:better-typehttps://github.com/bearomorphism/commitizen/tree/better-type
Conversation 65 https://github.com/commitizen-tools/commitizen/pull/1466
Commits 30 https://github.com/commitizen-tools/commitizen/pull/1466/commits
Checks 18 https://github.com/commitizen-tools/commitizen/pull/1466/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1466/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
refactor: improve types and avoid nested loop, add types for untyped functions https://github.com/commitizen-tools/commitizen/pull/1466/files#top
Show all changes 30 commits https://github.com/commitizen-tools/commitizen/pull/1466/files
f4b81b7 style(tags): improve types bearomorphism May 29, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/f4b81b7eca374fd2b388ad03ccdf5cb4b90c31ea
8b4a5fd perf(tags): use set bearomorphism May 29, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/8b4a5fdcbc0ad8cb78ba3e23033d55c3ef02f7ee
51fdc4f refactor: fix mypy output and better type bearomorphism May 29, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/51fdc4fad8379e2dfcb4f4efd76eb5bac8540c73
2ec92cc refactor(conventional_commits): remove unnecessary checks bearomorphism May 29, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/2ec92cc10e0b142486d93ec1d93d9a4c36f7d851
7ca5f79 refactor: make methods protected, better type bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/7ca5f7983991b27ac4e72445a67f301440bbccd8
7179dd3 style: remove unnecessary noqa bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/7179dd3067f40ab8fcd63ffa8761bb28c2c3370a
9b13386 style: type untyped methods bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/9b133868a008aeca018274ee1d787525ac96b83e
b999189 style: remove Union bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/b99918981149cadfc1028752bfcbf889f7f7b7a3
ea22ca4 style: better type bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/ea22ca4ba00aab9afd2e19dd8eaffd499fc49c94
ce05562 style: add `-> None` to __init__ bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/ce055625d02a315307498e88e1060bae95a39159
28ac03b build(ruff,mypy): more strict rules bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/28ac03b75e7a0f9b60679e6f0dbee17a9d8850bb
95c50e3 fix(BaseConfig): mypy error bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/95c50e397d10423fa602988eaaf308f831665f56
32836b2 build(mypy): remove disallow_untyped_defs because it's already done b… bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/32836b2e7d645fc70ae42977c5910633edf82da2
f0bdd55 refactor(bump): TypedDict for bump argument bearomorphism May 30, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/f0bdd55108c45641273770eb6a5f163b6287f273
32d7adb refactor(changelog): type untyped arguments bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/32d7adb24a9a97da7af8977fed78d424cd5bb140
a4b9ae9 refactor(check): remove unused argument bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/a4b9ae963749da49ba7f921159e24fc1e0599dac
0493765 style(bump): rename class for consistency bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/04937658081b27805016d5f81e8a41b51e819acb
e67ba23 refactor(check): type CheckArgs arguments bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/e67ba232f99bded76a3054c84e9078ea89115ac0
1f8c4bc refactor(commit): type commit args bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/1f8c4bc299dc6f0f9e830b388b16490d9f2c20a0
f771da3 refactor(commands): remove unused args, type version command args bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/f771da3ebad56fd9cf2449ea87542c5d6f88859e
d72e7ec style(cli): shorten arg type bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/d72e7ec581c44db0a2589bd68cc93b7e1de43770
8562209 docs(bump): comment on a stupid looking pattern bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/856220922e6eb4ace4d6f3ce58a4faaf68a5c981
9b99924 fix(Check): make parameters backward compatiable bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/9b99924701c55d1e50fe78d2a4642d7f506a6680
92a92bc style(changelog): rename parameter for consistency bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/92a92bcdd1721728e8832c6048a5588573ec9e08
95a9140 refactor(bump): improve readability and still bypass mypy check bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/95a9140e2d5f290cf6773fad8b88d77e981c513d
19efaa8 refactor: remove unnecessary bool() and remove Any type from TypedDic… bearomorphism May 31, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/19efaa846235df2527007d92726d866c11018b92
38fe5bf style(changelog): add TODO to fixable type ignores bearomorphism Jun 4, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/38fe5bf08d088dbe598fb7e4c88d6f79d33382b9
24c8201 style(cli): more specific type ignore bearomorphism Jun 4, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/24c8201113a2ccc620c85a0798a7570190193cf3
ac9e742 style(cli): rename kwarg to values bearomorphism Jun 4, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/ac9e742afdc5199a0f6b60cb9fd237a3c5345d29
667efef refactor(bump): use any to replace 'or' chain bearomorphism Jun 6, 2025 https://github.com/commitizen-tools/commitizen/pull/1466/commits/667efef0b1205e97fc2f6732213c65be9a3e86a2
Clear filters https://github.com/commitizen-tools/commitizen/pull/1466/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
changelog.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
__init__.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-ed386dd7ab1248bc269c71f280407bb121806ee87ca34684c2de0659d13674c7
base.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-8a880d1eb39a7589036ec4bca76a22b75dfb027a0ed11cde53e6721362bea691
cli.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
cmd.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
bump.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-920733205b591ccb6aded23a60aba1c20600036d38b5c224e27da47cf09ffb60
changelog.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-c6c18b0eef4f3598794a5fa7177ac53dd0cd8eba8f29ed7be7319c6d431f21c1
check.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
commit.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
example.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-a017eb7a956bf6f2d7ddd4e293a15cb93834d085b8e938c69bdb646bd4cce19c
info.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-617fd132646b2bacf73ec0442e78a147004f593b83e5b1673c167e75aa9444b8
init.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-43bdf96da59e2edd79c3797ccaf86dda6495266c02768cb045502851ebb047e8
list_cz.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-125c38b7f033e2a08a985948814022492e67ac3516b1df4cca6e95ea8138b42f
schema.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-dd2cd3dc0ed122c2777874db368e92de7ca42e5bdb4527b11dde28e72689fd54
version.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-381cdcd65b56e74d9b2bdc9ef26b9721521a60ce06cee1b352a55ee11d7343f3
base_config.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9c65f6eb3a5ea2cd26b4dae9b44263bccf4476f6f208d67839b4065e48243c58
json_config.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-7083d27dd4a739e48dbec8f95d5b5ec2c751e125f4b9f0644daae3a5cd74a302
toml_config.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-ca51a0ad54fe5bab3972507ec801fc9fd779296231f6ed5343c2ef6aa1826ee7
yaml_config.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-1aff2b95c87ebe1dee4da8637ca9aa66bdb5dc607b21340248a6196408469604
base.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-acce48958b50788432b1a4e502b1bc0fbf1ffb89a157941868ffac67782bb77b
conventional_commits.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-75caab3ab9b4490578957c3d47e01cff4dc9e393772e839e699cb27f69ec108d
customize.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9902f7d08f081f8ccb8e4acb71ad8e74dfb11df78618580dc8323c3386517aa4
jira.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-dd373ed9c8cff70b5dc930f016b14bd205d3435064802021bab09033f4f5003c
utils.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-a65f6ac2f09ba19e2e8e989de2caf799bca776af4b63662e8c5b324ab32b2992
defaults.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-c951de16d627d82e01eb3ce8d7c4f0b28973ffe147520620762e7140ede2dd80
exceptions.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
git.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-2c36ae6439ace4898e030adb6f7a861fd8e5ae0002ca472cc97e627ea20b3d96
hooks.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-eb066b3355dd121ab2ba85423f286322c44c080fd99b8582427fd9ed589ad217
out.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-0a469ea5461bc40166e6c6ad8e336cc81247224effdf19e3fdb195157e5d07e2
base_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-64c3325bd14626e6c72e5462da2108381e36900f2e4d11660eb857b2c96eb7e8
cargo_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-4b6758b754116c8b7b307ab00ad99c4cb77cbfa4839049f4c22e8f0f922f007d
commitizen_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-d343a6b818537162f56e07f6e6ba3b99b56cb228725333f9e7053fd81b921995
npm_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-4244c016fc149b549254d4187e8bbac2dc2265a5b0f5b9cd429f1f3cf78a57c4
poetry_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-5213d8e53c242bdee2653d36dac18b7b7b11e7b1632985d6be496e899ee6d2bc
scm_provider.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9964d47d9ff8767d64a55433d66dbd7698c0410b882757b133a10ceed266fed5
tags.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-a5edd827ef040910855f0d0ab2e9bd2303e0d329b5d432b9c0045d55f1dd420d
version_schemes.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-3ff84158d7a7a4dcd06ae0ef5a1e1bd27cb2c03f710eb8ed31b3ed706b192f42
pyproject.toml https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_bump_command.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-8b7a896f7aaf12467a53ab731ce9f5e167dc3afe6e88e06e7700f1a7e9e92831
test_version_command.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-b560df977004539118f4e33cda6295336b1b15e5f9d6bf4ac6091b0cecb66473
conftest.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
test_bump_find_increment.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-5cfb403682fbe28d06bdc40f70752abed5558fd98bb81d15e8afd9d32a15a8c0
test_cz_conventional_commits.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-a82b0adf72b8fcc6ad5b6a6c05ef03e8c864b47332dafdee03ddd0961c7b986f
test_git.py https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-525635b43f5ec42f8b19fa010a1681f61b7832c76bccde68dc8e04c9f3c8de9b
commitizen/changelog.pyhttps://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
View file https://github.com/bearomorphism/commitizen/blob/667efef0b1205e97fc2f6732213c65be9a3e86a2/commitizen/changelog.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1466/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/files
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-9a66aca02ea7d31a58e52fc33fc6914dc724c8eb36ccb69f365f86ec3490497b
commitizen/changelog_formats/__init__.pyhttps://github.com/commitizen-tools/commitizen/pull/1466/files#diff-ed386dd7ab1248bc269c71f280407bb121806ee87ca34684c2de0659d13674c7
View file https://github.com/bearomorphism/commitizen/blob/667efef0b1205e97fc2f6732213c65be9a3e86a2/commitizen/changelog_formats/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1466/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-ed386dd7ab1248bc269c71f280407bb121806ee87ca34684c2de0659d13674c7
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-ed386dd7ab1248bc269c71f280407bb121806ee87ca34684c2de0659d13674c7
commitizen/changelog_formats/base.pyhttps://github.com/commitizen-tools/commitizen/pull/1466/files#diff-8a880d1eb39a7589036ec4bca76a22b75dfb027a0ed11cde53e6721362bea691
View file https://github.com/bearomorphism/commitizen/blob/667efef0b1205e97fc2f6732213c65be9a3e86a2/commitizen/changelog_formats/base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1466/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-8a880d1eb39a7589036ec4bca76a22b75dfb027a0ed11cde53e6721362bea691
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-8a880d1eb39a7589036ec4bca76a22b75dfb027a0ed11cde53e6721362bea691
commitizen/cli.pyhttps://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
View file https://github.com/bearomorphism/commitizen/blob/667efef0b1205e97fc2f6732213c65be9a3e86a2/commitizen/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1466/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
commitizen/cmd.pyhttps://github.com/commitizen-tools/commitizen/pull/1466/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
View file https://github.com/bearomorphism/commitizen/blob/667efef0b1205e97fc2f6732213c65be9a3e86a2/commitizen/cmd.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1466/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
https://github.com/commitizen-tools/commitizen/pull/1466/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1466/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.