+
Skip to content

Conversation

arkid15r
Copy link
Collaborator

@arkid15r arkid15r commented Aug 19, 2025

Proposed change

Migrate downloads badge to the local data source.

Screenshot 2025-08-19 at 4 34 33 PM

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

Copy link
Contributor

coderabbitai bot commented Aug 19, 2025

Summary by CodeRabbit

  • Documentation
    • Updated README badges for PyPI:
      • Downloads badge now shows automatically updated monthly downloads instead of a static total.
      • Release date badge label updated to “Latest release date.”
    • No functional or API changes.

Walkthrough

Replaced README's static Pepy total-downloads badge with a dynamic Shields.io YAML-driven badge that reads monthly_downloads_human from pepy.tech.yaml (cached 86400s). PyPI version and release-date badges unchanged. No code or API changes.

Changes

Cohort / File(s) Summary of changes
Docs badge update
README.md
Replaced static Pepy total-downloads badge with a dynamic YAML-driven monthly downloads badge referencing pepy.tech.yaml (query: $.monthly_downloads_human, suffix /month, style flat, color 41B5BE, cacheSeconds=86400). PyPI version and release date badges unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • KJhellico
  • PPsyrius

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 334bdd8 and 05512b5.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🔇 Additional comments (1)
README.md (1)

12-12: Migration to aux-based monthly downloads looks good.

Dynamic YAML badge with cacheSeconds=86400 and monthly_downloads_human is aligned with the PR goal.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f7155f6 and eb79072.

📒 Files selected for processing (1)
  • README.md (1 hunks)
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Test build on ubuntu-latest
  • GitHub Check: Test build on windows-latest
  • GitHub Check: Test build on macos-latest
🔇 Additional comments (1)
README.md (1)

12-12: Badge verification successful
The YAML file is reachable (HTTP 200), the monthly_downloads_human field exists (value: “16M”), and the Shields.io badge endpoint returns HTTP 200—badge will render correctly.

Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f7155f6) to head (05512b5).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2832   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          286       286           
  Lines        17038     17038           
  Branches      2229      2229           
=========================================
  Hits         17038     17038           

☔ View full report in Codecov by Sentry.
📢 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.

@arkid15r arkid15r changed the title Use aux repository date for downloads badge Use aux repository data for downloads badge Aug 19, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (2)
README.md (2)

12-12: Alt text nit: clarify aux-sourced monthly metric.

Make the first badge’s alt precise for screen readers.

Apply this diff:

-      <a href="https://pypi.org/project/holidays"><img src="https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fvacanza%2Faux%2Frefs%2Fheads%2Fmain%2Fbadges%2Fdownloads%2Fpepy.tech.yaml&query=%24.monthly_downloads_human&suffix=%2Fmonth&style=flat&label=downloads&color=41B5BE&cacheSeconds=86400" alt="PyPI Monthly Downloads"></a>
+      <a href="https://pypi.org/project/holidays"><img src="https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fvacanza%2Faux%2Frefs%2Fheads%2Fmain%2Fbadges%2Fdownloads%2Fpepy.tech.yaml&query=%24.monthly_downloads_human&suffix=%2Fmonth&style=flat&label=downloads&color=41B5BE&cacheSeconds=86400" alt="PyPI downloads/month (from aux data)"></a>

12-12: Nit: simplify raw.githubusercontent URL (drop refs/heads).

Shorter branch path is equivalent and cleaner.

Apply this diff:

-https%3A%2F%2Fraw.githubusercontent.com%2Fvacanza%2Faux%2Frefs%2Fheads%2Fmain%2Fbadges%2Fdownloads%2Fpepy.tech.yaml
+https%3A%2F%2Fraw.githubusercontent.com%2Fvacanza%2Faux%2Fmain%2Fbadges%2Fdownloads%2Fpepy.tech.yaml
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between eb79072 and 334bdd8.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🔇 Additional comments (2)
README.md (2)

12-12: Good move: downloads badge now sources from aux via Shields.

The dynamic/yaml badge with cacheSeconds looks solid and aligns with the PR goal.


12-12: Aux YAML badge source and key confirmed
The aux YAML at https://raw.githubusercontent.com/vacanza/aux/main/badges/downloads/pepy.tech.yaml returns HTTP 200 and includes monthly_downloads_human: 16M. No further action needed.

Copy link

@arkid15r arkid15r marked this pull request as ready for review August 20, 2025 04:48
@arkid15r arkid15r requested a review from KJhellico as a code owner August 20, 2025 04:48
@arkid15r arkid15r enabled auto-merge August 20, 2025 04:50
Copy link
Collaborator

@PPsyrius PPsyrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🛠️

@arkid15r arkid15r added this pull request to the merge queue Aug 20, 2025
Merged via the queue into vacanza:dev with commit a5a83e8 Aug 20, 2025
36 checks passed
@arkid15r arkid15r deleted the ark/fix-downloads-badge branch August 20, 2025 07:15
@arkid15r arkid15r linked an issue Aug 20, 2025 that may be closed by this pull request
@arkid15r arkid15r mentioned this pull request Sep 1, 2025
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.

Broken PyPI stats badge in the README (+replacement alternatives)

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载