feat: add 221 problems and self-updating problem counts - #187
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
🎉 This PR is included in version 1.0.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Changes
1. 221 new problems
src/leetcode_py/cli/resources/leetcode/json/problems/,leetcode/Each new problem ships a JSON template plus the six generated files (README, solution stub, parametrized test suite, helpers, playground, package init), sourced from the NeetCode roadmap expansion and other lists.
tags.json5grows by ~213 lines to register the new problems across the collections, and the generated catalog pages (catalog/all.mdx,catalog/neetcode.mdx) expand accordingly to 531 entries. This batch also removes three unsolvable test cases from thetwo_sumtemplate (expected[]violates the problem's guarantee of exactly one solution).2. Generated problem counts in hand-written prose
scripts/gen_catalog.py,README.md,docs/index.mdx,docs/getting-started/why-leetcode-py.mdxgen_catalog.pynow injects the exact problem count (531) into three hand-written files via start/end comment markers, replacing the stale hardcoded "300+".README.mduses HTML comments; the.mdxfiles use JSX comments since MDX rejects HTML comment syntax. Becausebake lint(a pre-commit hook) runs the generator, any count drift now fails CI until the regenerated files are committed, with--checkavailable for verification-only runs.3. Troubleshooting docs
docs/troubleshooting/,docs/docs.jsonFour new pages: unknown-problem, files-already-exist, graphviz-missing, and notebook-cells, plus a reworked troubleshooting index and nav entries.
4. Agent workflow tooling
.claude/skills/,.claude/.dev/,bakefile.py,.mise.tomlUpdates to the problem-creation, batch-problem-creation, test-quality-assurance, and update-tags skills; a new
.claude/.dev/insert_tag.pyhelper; the unscrapable problem queue list; and a pinned bakefile install with locked extras.5. Update dependencies
uv.lock) and 307 regeneratedplayground.pyconversions from the notebook-to-python lint hook.Test plan
bake lintpasses (ty, ruff, deptry, actionlint, generated catalog freshness)bake check-consistencypasses: generated files match JSON source of truthbake check-test-casesreports 0 problems at or below the 10-case thresholdbake p-testpasses for the three problems that received additional test cases