From 0c4f5e7314e982f42bb9eaa200c725f4c45df42d Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Tue, 18 Feb 2025 09:48:34 -0800 Subject: [PATCH] os-based cache and pre-commit config --- .github/workflows/tests.yml | 2 +- .pre-commit-config.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87a7542..77a98d7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.cache/pre-commit/ - key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + key: pre-commit-${{ matrix.os }}-${{ hashFiles('.pre-commit-config.yaml') }} - name: Run pre-commit checks run: pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e8aa4b..5fd0b2e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,6 +32,8 @@ repos: - > -d={extends: default, rules: { document-start: disable, + line-length: {max: 100}, + new-lines: disable, quoted-strings: {quote-type: single, required: only-when-needed}, truthy: {check-keys: false}}}