Skip to content

Commit bf3f469

Browse files
authored
feat: move to claude code (#131)
- migrate to bakefile from makefile - migrate to claude code from cursor - migrate from poetry to uv - migrate from mypy to ty - add 10 more problems to verify claude code commands work properly
2 parents c6d7f37 + 9ebd3f0 commit bf3f469

409 files changed

Lines changed: 5674 additions & 3152 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def check_problem_list(tag_name, problem_tuples, existing_problems):
1717

1818
print(f"\n=== {tag_name.upper()} ===")
1919
print(f"Total problems: {len(problem_numbers)}")
20-
print(f"Problems you have: {len(have)} ({len(have)/len(problem_numbers)*100:.1f}%)")
21-
print(f"Problems missing: {len(missing)} ({len(missing)/len(problem_numbers)*100:.1f}%)")
20+
print(f"Problems you have: {len(have)} ({len(have) / len(problem_numbers) * 100:.1f}%)")
21+
print(f"Problems missing: {len(missing)} ({len(missing) / len(problem_numbers) * 100:.1f}%)")
2222

2323
if missing:
2424
print(f"Missing problems: {sorted(missing)}")
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unscrapable Problems List
2-
# Problems that cannot be scraped due to being premium, having API issues, or other technical limitations
2+
# Problems that cannot be scraped due to being premium, API issues, or other
3+
# technical limitations.
34

45
# Format: (problem_number, problem_name)
56
UNSCRAPABLE_PROBLEMS = [
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313

1414
def get_existing_problems():
1515
"""Get problem numbers and names from existing JSON files."""
16-
json_dir = Path(__file__).parent.parent.parent / "leetcode_py/cli/resources/leetcode/json/problems"
16+
json_dir = (
17+
Path(__file__).parent.parent.parent / "src/leetcode_py/cli/resources/leetcode/json/problems"
18+
)
1719
existing_problems = {}
1820

1921
for json_file in json_dir.glob("*.json"):
2022
try:
21-
with open(json_file, "r") as f:
23+
with open(json_file) as f:
2224
data = json.load(f)
2325
problem_number = int(data.get("problem_number", 0))
2426
if problem_number > 0:
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
alwaysApply: true
3-
---
41
# LeetCode Repository Rules
52

63
## Discussion Mode
@@ -18,8 +15,8 @@ alwaysApply: true
1815

1916
## Testing
2017

21-
- Test specific: `make p-test PROBLEM=<name>`
22-
- Test all: `make test`
18+
- Test specific: `bake p-test -p problem_name`
19+
- Test all: `bake test`
2320
- Beautiful logging with loguru
2421

2522
### Multiple Solution Classes Pattern

0 commit comments

Comments
 (0)