From 1c5377d7650f9407e003223a08b8a71b77d9d2db Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 30 Nov 2024 11:53:51 +0100 Subject: [PATCH] prep 2024 --- README.md | 27 +-------------------------- main.py | 2 +- requirements.txt | 2 +- start_day.py | 2 +- 4 files changed, 4 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 7618388..97e7d09 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,4 @@ -# aoc_template +# Advent of Code 2024 -Template for yearly AoC-Repositories - -# Usage - -- Clone repository (or use as template in gitea) -- Run `pip install -r requirements.txt` -- Update main.py and start_day.py: set YEAR (near the top) to the respective year -- Create a file named ".session" next to your main.py containing the contents of your aoc-session cookie - -On a given day, just call `./start_day.py -d ` - -# Not using PyCharm? - -Just comment out the call() to CHARMS near the end of start_day.py - -# Want to add AoC-Tiles? - -Author: https://github.com/LiquidFun/aoc_tiles - -- Run `pre-commit install --hook-type post-commit` -- In .pre-commit-config.yaml change the --overwrite-year option as needed -- Optional: Copy your .session file to session.cookie -- For more options see: https://github.com/LiquidFun/aoc_tiles/blob/main/aoc_tiles/config.py - -Tiles will be added to this README between the following lines: \ No newline at end of file diff --git a/main.py b/main.py index c02586c..31f9bd8 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ import argparse import importlib import os -YEAR = 2018 +YEAR = 2024 TIMEIT_NUMBER = 50 argument_parser = argparse.ArgumentParser() diff --git a/requirements.txt b/requirements.txt index 10ba718..c6ee3a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -shs-tools ~= 0.3 +shs-tools ~= 0.4 pre-commit \ No newline at end of file diff --git a/start_day.py b/start_day.py index 8f8da4c..401a469 100644 --- a/start_day.py +++ b/start_day.py @@ -9,7 +9,7 @@ from tools.tools import human_readable_time_from_delta import webbrowser -YEAR = 2018 +YEAR = 2024 CHARMS = { 'Linux': '/usr/local/bin/charm', 'Windows': r'C:\Users\pennywise\AppData\Local\JetBrains\Toolbox\scripts\pycharm.cmd'