Skip to content

Fix PyPI badge rendering#3247

Merged
koxudaxi merged 1 commit into
mainfrom
fix-docs-initial-render
Jun 4, 2026
Merged

Fix PyPI badge rendering#3247
koxudaxi merged 1 commit into
mainfrom
fix-docs-initial-render

Conversation

@koxudaxi

@koxudaxi koxudaxi commented Jun 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

PyPI version badge URLs are updated from badge.fury.io to img.shields.io in both the README and documentation index, maintaining the same target URLs.

Badge URL Updates

Layer / File(s) Summary
Badge URL Updates
README.md, docs/index.md
PyPI version badge image sources switched from badge.fury.io to img.shields.io endpoints while preserving the link destinations to PyPI packages.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 A badge, a link, a simple swap,
From fury's glow to shields' bright top,
Two docs align, now shiny and new,
PyPI's version shines right through!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title 'Fix PyPI badge rendering' directly addresses the main change in the changeset: updating PyPI version badges in README.md and docs/index.md from badge.fury.io to img.shields.io.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-docs-initial-render

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codspeed-hq

codspeed-hq Bot commented Jun 4, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 44.5%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 11 improved benchmarks
⏩ 98 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime test_perf_all_options_enabled 6.3 s 4.2 s +47.95%
WallTime test_perf_aws_style_openapi_pydantic_v2 2.1 s 1.4 s +47.69%
WallTime test_perf_deep_nested 5.8 s 3.9 s +47.67%
WallTime test_perf_large_models_pydantic_v2 3.9 s 2.7 s +46.94%
WallTime test_perf_kubernetes_style_pydantic_v2 2.8 s 1.9 s +44.5%
WallTime test_perf_duplicate_names 1,094.3 ms 762 ms +43.61%
WallTime test_perf_stripe_style_pydantic_v2 2.2 s 1.5 s +43.36%
WallTime test_perf_openapi_large 3.1 s 2.2 s +42.45%
WallTime test_perf_multiple_files_input 3.8 s 2.7 s +42.36%
WallTime test_perf_complex_refs 2.2 s 1.5 s +42.06%
WallTime test_perf_graphql_style_pydantic_v2 860 ms 609.5 ms +41.09%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix-docs-initial-render (cfcd915) with main (70ae43f)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📚 Docs Preview: https://pr-3247.datamodel-code-generator.pages.dev

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (70ae43f) to head (cfcd915).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #3247   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          112       112           
  Lines        25192     25192           
  Branches      3182      3182           
=========================================
  Hits         25192     25192           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koxudaxi koxudaxi changed the title Fix docs initial render Fix PyPI badge rendering Jun 4, 2026
@koxudaxi koxudaxi merged commit 2e6ccfe into main Jun 4, 2026
50 checks passed
@koxudaxi koxudaxi deleted the fix-docs-initial-render branch June 4, 2026 03:45
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: PR #3247 only modifies documentation files: a badge URL migration in README.md/docs/index.md/docs/llms-full.txt, and a JavaScript/CSS fix in the MkDocs theme override (overrides/main.html) to resolve an initial render issue on the docs site. No changes to code generation output, Jinja2 templates, CLI/API interfaces, default behavior, Python version support, or error handling.


This analysis was performed by Claude Code Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🎉 Released in 0.60.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant