Solutions for https://adventofcode.com/2021/ in pure Python, with code quality measurements and unit testing.
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Part One | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Part Two | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Day | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Part One | ✓ | ✓ | ✓ | ✓ | ||||||||
Part Two | ✓ | ✓ | ✓ | ✓ |
- Python 3 (developed with Python 3.7; tested with 3.7-3.11)
Optional:
- Flake8 (for linting)
- Pylint (for linting)
- mypy (for static type checking)
- pytest (for unit testing)
- pytest-cov (for code coverage)
Install the requirements for code quality checks:
python -m pip install -r requirements.txt
./lint_flake8.sh
./lint_pylint.sh
./mypy.sh
./pytest.sh
The code coverage report can be found in coverage_html_report
afterwards.
./cqall.sh