From 5ebfdfd48e0e2b0e8bb495c0f3061060c9340dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sun, 19 Jun 2022 21:02:02 +0200 Subject: [PATCH] Add additional hooks to pre-commit --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .pre-commit-config.yaml | 9 ++++++++- README.md | 16 ++++++++-------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index ba5f23d..5043552 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -27,7 +27,7 @@ body: label: To reproduce description: How can you reproduce the bug? placeholder: | - The steps needed to reproduce the behavior: + The steps needed to reproduce the behavior: 1. validations: required: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c39744f..5f29eea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,4 +7,11 @@ repos: - '--print-width=100' - '--single-quote' - '--trailing-comma=all' - exclude: 'CookieMonster(Dev)?.js' + exclude: &build 'CookieMonster(Dev)?.js(.map)?' + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + exclude: *build + - id: end-of-file-fixer + exclude: *build diff --git a/README.md b/README.md index 49032d5..9981fd3 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,14 @@ If the relevant option is enabled, CM will color-code each of them based on thei
The following standard colours are used: - -* Light Blue: (upgrades) This item has a better PP than the best building to buy -* Green: This building has the best PP -* Yellow: This building is within the top 10 of best PP's -* Orange: This building is within the top 20 of best PP's -* Red: This building is within the top 30 of best PP's -* Purple: This building is worse than the top 10 of best PP's -* Gray: This item does not have a PP, often this means that there is no change to CPS + +- Light Blue: (upgrades) This item has a better PP than the best building to buy +- Green: This building has the best PP +- Yellow: This building is within the top 10 of best PP's +- Orange: This building is within the top 20 of best PP's +- Red: This building is within the top 30 of best PP's +- Purple: This building is worse than the top 10 of best PP's +- Gray: This item does not have a PP, often this means that there is no change to CPS