MCPcopy Create free account
hub / github.com/HzaCode/OneCite / main

Function main

scripts/update_stars.py:63–78  ·  view source on GitHub ↗

Main entry point.

()

Source from the content-addressed store, hash-verified

61
62
63def main():
64 """Main entry point."""
65 stars = get_github_stars()
66 print(f"Current GitHub stars: {stars} ({format_stars(stars)})")
67
68 # Update main README
69 readme_path = Path("README.md")
70 if readme_path.exists():
71 update_readme_stars_badge(readme_path, stars)
72 else:
73 print("README.md not found")
74
75 # Update docs README if exists
76 docs_readme = Path("docs/README.md")
77 if docs_readme.exists():
78 update_readme_stars_badge(docs_readme, stars)
79
80
81if __name__ == "__main__":

Callers 1

update_stars.pyFile · 0.70

Calls 3

get_github_starsFunction · 0.85
format_starsFunction · 0.85

Tested by

no test coverage detected