diff --git a/.gitignore b/.gitignore index 0f9b857..46b7e1a 100644 --- a/.gitignore +++ b/.gitignore @@ -159,6 +159,10 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +# AoC Tiles +.aoc_tiles/* +!.aoc_tiles/tiles/ + # VS Code project settings .vscode/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3091a49 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +repos: + - repo: https://github.com/LiquidFun/aoc_tiles + rev: 0.5.5 + 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=amend + - --language-sorting=py,rs + - --exclude-patterns="utils/*" + - --what-to-show-on-right-side=checkmark + - --count-as-solved-when=on_leaderboard diff --git a/README.md b/README.md index 06e283c..f234553 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # Advent of Code My solutions to the yearly Advents of Code + + +