HF RL Explorer

print page ranges: implement stub

print page ranges: implement stub: a task in smol-software-harbor (Harbor dataset). parse pages() in pages.py is a stub. Implement it exactly as its docstring specifies (open ranges such as 8- run to the last page, duplicates removed, sorted output, ValueError for pages outside 1..last page and…

The task

`parse_pages()` in `pages.py` is a stub. Implement it exactly as its docstring specifies (open ranges such as `8-` run to the last page, duplicates removed, sorted output, `ValueError` for pages outside `1..last_page` and for reversed ranges). Run `python3 -m pytest -q`.

Part of efederici/smol-software-harbor.