Skip to content

Commit

Permalink
Move static checks to single-line ones (#27424)
Browse files Browse the repository at this point in the history
Suddenly github stopped liking 3-years old (otherwise perfectly fine)
double-quoted mutli-line strings indented in the way that they
lacked spaces (even it is perfectly valid yaml). Seems they
changed parser to be a lot more picky (and rather wrong because such
multi-line entries when ended with \ are perfectly fine according to
yaml specification.

This change fixes the problem by making those keys single line and
telling yamlling to ignore their length (yammlint was the main
reason why they were converted into multi-line keys).
  • Loading branch information
potiuk authored Oct 31, 2022
1 parent 219df18 commit b29ca4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit-full
key: "pre-commit-${{steps.host-python-version.outputs.host-python-version}}-\
${{ hashFiles('.pre-commit-config.yaml') }}"
# yamllint disable-line rule:line-length
key: "pre-commit-${{steps.host-python-version.outputs.host-python-version}}-${{ hashFiles('.pre-commit-config.yaml') }}"
restore-keys: |
pre-commit-full-${{steps.host-python-version.outputs.host-python-version}}
pre-commit-full
Expand Down Expand Up @@ -597,8 +597,8 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: "pre-commit-basic-${{steps.host-python-version.outputs.host-python-version}}-\
${{ hashFiles('.pre-commit-config.yaml') }}"
# yamllint disable-line rule:line-length
key: "pre-commit-basic-${{steps.host-python-version.outputs.host-python-version}}-${{ hashFiles('.pre-commit-config.yaml') }}"
restore-keys: |
pre-commit-basic-${{steps.host-python-version.outputs.host-python-version}}
pre-commit-basic-
Expand Down

0 comments on commit b29ca4e

Please sign in to comment.