Skip to content

Commit

Permalink
os-based cache and pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Feb 18, 2025
1 parent 1c076b4 commit 0c4f5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}
Expand Down

0 comments on commit 0c4f5e7

Please sign in to comment.