Advent of Code template for Copier.
- Python 3.11+
- Uses rye for virtual environment and package management
- Using shed, follows the black code style with isort, pyupgrade and autoflake
- Pre-Commit with shed, ruff and others.
- CLI to download and submit solutions.
Generate a new repository with:
copier copy --trust "gh:baurt/aoc-copier" path-to-project{% note %}
Note: The --trust option is required because some tasks may execute after generating the project. These are all listed in the copier.yml under the _tasks key. They do not need to be run, they just help automate some steps, such as intitializing a git repo, setting up a remote and creating a virtual environment. Some of these require external CLI programs.
{% endnote %}
This project uses rye for dependency and virtual environment management. If the rye task was not run during setup, run
rye syncSimilarly, you'll also have to run
rye run pre-commit install