Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iain-s/adventofpython
Advent of Code 2022/3, in Python
https://github.com/iain-s/adventofpython
Last synced: 4 days ago
JSON representation
Advent of Code 2022/3, in Python
- Host: GitHub
- URL: https://github.com/iain-s/adventofpython
- Owner: Iain-S
- Created: 2022-12-22T23:48:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T16:10:54.000Z (12 months ago)
- Last Synced: 2024-04-19T06:35:48.047Z (7 months ago)
- Language: Python
- Homepage: https://adventofcode.com/2023
- Size: 200 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code, in Python
## Setup
- Install Python 3.12.
- Set up a virtual environment and install the project with Poetry.
- Set up pre-commit hooks with `pre-commit install --install-hooks`.
- Install watchman for pyre with `brew install watchman`.## Layout
- `aopy/` has the solutions
- `tests/` has the unit tests
- `inputs/` has my personalised inputs
- `examples/` has the examples inputsWithin each, `a/` and `b/` have files for 2022 and 2023, respectively. `u/` directories are for utilities or utility tests.
## Use
1. `./template 1` to create files for December 1st.
2. `python -m unittest tests/b/test_day1.py` to run the tests.
3. Copy the examples from the problem description into `examples/b/day1.txt`.
4. Copy the personalised input into `inputs/b/day1.txt`.
5. Once you are happy with your solution(s), run `python -m aopy.b.day1` to get the answer(s).