nanochat/tasks
Tsvika Shapira b1925368f9 refactor: migrate from os.path to pathlib.Path across codebase
Converted all path operations to use pathlib.Path instead of os.path module.
This modernizes the codebase and fixes all 135 ruff PTH violations.

Changes:
- Replace os.path.join() with Path / operator
- Replace os.path.exists() with Path.exists()
- Replace os.makedirs() with Path.mkdir()
- Replace open() with Path.open() where appropriate
- Replace os.remove() with Path.unlink()
- Replace os.getcwd() with Path.cwd()
- Replace os.path.expanduser("~") with Path.home()
- Add type hints for Path parameters in function signatures

All path objects are now created at first occurrence and propagated
through the codebase, eliminating unnecessary string conversions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 12:49:38 +02:00
..
arc.py initial commit 2025-10-13 06:49:24 -07:00
common.py fixing two typos in comments 2025-11-19 15:12:53 -05:00
customjson.py refactor: migrate from os.path to pathlib.Path across codebase 2025-12-26 12:49:38 +02:00
gsm8k.py fixing two typos in comments 2025-11-19 15:12:53 -05:00
humaneval.py initial commit 2025-10-13 06:49:24 -07:00
mmlu.py initial commit 2025-10-13 06:49:24 -07:00
smoltalk.py initial commit 2025-10-13 06:49:24 -07:00
spellingbee.py refactor: migrate from os.path to pathlib.Path across codebase 2025-12-26 12:49:38 +02:00