-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from GriceTurrble/docs/readme-updates-2024
docs: updates to 2024 readmes
- Loading branch information
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AoC 2024 | ||
|
||
Welcome to my 2024 solutions for Advent of Code! | ||
|
||
This year I have a few goals in mind, so I aim to be busy in this section this month: | ||
|
||
- I want to learn more about [uv](https://docs.astral.sh/uv/), | ||
so I'm writing [Python solutions](python) using `uv` as the main management tool. | ||
- I am starting a new position that involves coding in **Ruby on Rails** and **React**, | ||
so I want to hone my skills by duplicating solutions in both Ruby and TypeScript. | ||
- I still want to champion a transition to **Rust** in my work, | ||
so I am also duplicating solutions in Rust. | ||
|
||
Seems ambitious, for sure. | ||
Should keep me busy throughout the month. 🙂 | ||
|
||
With the advent (heh) of AI tooling, I am making some use of Copilot to assist with the small bits. | ||
I'm not having it actually solve the problem for me, but it's filling in boilerplate and helping me type faster. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
# AoC 2024, in Python | ||
# AoC 2024 Python solutions | ||
|
||
## Getting started | ||
|
||
This project uses `uv` for all tooling. | ||
|
||
To install `uv`, such as through Homebrew: | ||
|
||
```shell | ||
brew install uv | ||
``` | ||
|
||
Run any given day using `uv run dayXX`, where `XX` is the number of the day: | ||
|
||
```shell | ||
uv run day01 | ||
``` | ||
|
||
Run tests across the project using `uv run pytest`. | ||
|
||
## CLI options | ||
|
||
There is a `cli` script included in the project which, among other things (maybe) can scaffold the files for a new day. | ||
|
||
Run `uv run cli --help` for details. | ||
|
||
To create a new day, use the `create-day` command, followed by the number of the new day: | ||
|
||
```shell | ||
uv run cli create-day 5 | ||
``` | ||
|
||
If a directory for the given day already exists, an error is raised. | ||
It will also attempt to add a script entry point to [`pyproject.toml`](pyproject.toml) (in the `[project.scripts]` table) for that new day. | ||
If such a script already exists, an error is raised. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters