To run the files:
python days/day1.py
To run the tests:
python -m pytest tests/day1_test.py
When getting error for relative imports like:
ModuleNotFoundError or ImportNotFound
Use this article How to Fix ModuleNotFoundError and ImportError
Specifically:
export PYTHONPATH="${PYTHONPATH}:/Users/laura.zaharia/Personal/AoC-2022-Python"
Some useful references:
- How to implement a sliding window -> adapted for day 6 solution