diff --git a/.gitignore b/.gitignore index f295d3d..1ecd7ae 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,9 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. .idea/ +answer_cache.json +.session +session.cookie +.aoc_tiles/* +!.aoc_tiles/tiles/ + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..812c38c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +repos: + - repo: https://github.com/LiquidFun/aoc_tiles + rev: 0.6.2 + hooks: + - id: aoc-tiles + # Optionally use these arguments. Auto add tiles to git adds the tiles to git, + # possibly amends your commit by creating the tile images and updating the README. + # Language sorting shows the preference of the order of the languages to use. + # Exclude paterns are globs which can be used to exclude files when creating + # the tiles. See the customization section in the README for more flags. + # Simply remove the comments (#) below for args and the flags you want. + args: + - --auto-add-tiles-to-git=add + - --contrast-improvement-type=dark + - --overwrite-year=2024 + # - --language-sorting=py,jl,kt,rs + # - --exclude-patterns=2021/*/*.apl,2021/*/*.py,2021/*/*.cpp \ No newline at end of file diff --git a/README.md b/README.md index 59a23c9..7618388 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,16 @@ 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/requirements.txt b/requirements.txt index e58fa34..10ba718 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -shs-tools ~= 0.3 \ No newline at end of file +shs-tools ~= 0.3 +pre-commit \ No newline at end of file