Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tillerburr/aoc-copier
https://github.com/tillerburr/aoc-copier
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tillerburr/aoc-copier
- Owner: TillerBurr
- Created: 2023-08-23T19:26:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T21:13:08.000Z (over 1 year ago)
- Last Synced: 2024-05-12T00:42:08.417Z (9 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code Copier Template
[Advent of Code](https://adventofcode.com/) template for Copier.
## Features
- 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.## Usage
Generate a new repository with:
```shell
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
```shell
rye sync
```Similarly, you'll also have to run
```shell
rye run pre-commit install
```[ruff]: https://beta.ruff.rs/docs/
[black]: https://github.com/psf/black
[isort]: https://pypi.org/project/isort/
[rye]: https://rye-up.com
[pre-commit]: https://pre-commit.com/
[shed]: https://github.com/Zac-HD/shed
[pyupgrade]: https://github.com/asottile/pyupgrade
[autoflake]: https://github.com/PyCQA/autoflake