prepare aoc-tiles usage
This commit is contained in:
parent
ee0b86bc7e
commit
12dc7f7cd8
6
.gitignore
vendored
6
.gitignore
vendored
@ -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/
|
||||
|
||||
|
||||
17
.pre-commit-config.yaml
Normal file
17
.pre-commit-config.yaml
Normal file
@ -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
|
||||
13
README.md
13
README.md
@ -14,3 +14,16 @@ On a given day, just call `./start_day.py -d <day_of_month>`
|
||||
# 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:
|
||||
<!-- AOC TILES BEGIN -->
|
||||
<!-- AOC TILES END -->
|
||||
@ -1 +1,2 @@
|
||||
shs-tools ~= 0.3
|
||||
shs-tools ~= 0.3
|
||||
pre-commit
|
||||
Loading…
Reference in New Issue
Block a user