Skip to content

Commit

Permalink
Fix YAML linting errors
Browse files Browse the repository at this point in the history
Also extend maximum YAML line length to 88 characters
  • Loading branch information
akaihola committed Mar 15, 2024
1 parent 296d67b commit 5f7315a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
# This is used to update the call for reviewing pull requests
# in `README.rst`.
run: |
pip install https://github.com/akaihola/darkgray-dev-tools/archive/refs/heads/main.zip
pip install \
https://github.com/akaihola/darkgray-dev-tools/archive/refs/heads/main.zip
darkgray_bump_version \
--minor \
--dry-run \
Expand Down
10 changes: 10 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

extends: default

rules:
line-length:
max: 88
level: warning
ignore: |
release_tools/bump-version-patterns.yaml
56 changes: 28 additions & 28 deletions release_tools/bump-version-patterns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,47 +24,47 @@


".github/ISSUE_TEMPLATE/bug_report.md":
- |-
^ - Darker version \[e\.g\. {old_version->new_version}\]
- |-
^ - Darker version \[e\.g\. {old_version->new_version}\]
"README.rst":
- |-
^ conda install -c conda-forge darker~={old_version->new_version} isort
- |-
^ conda install -c conda-forge darker~={old_version->new_version} isort
- |-
^\.\. _next-milestone: https://github\.com/akaihola/darker/milestone/{any_milestone->next_milestone}
- |-
^\.\. _next-milestone: https://github\.com/akaihola/darker/milestone/{any_milestone->next_milestone}
- |-
^ (?: )?rev: {old_version->new_version}
- |-
^ (?: )?rev: {old_version->new_version}
- |-
^\.\. \|next-milestone\| image:: https://img\.shields\.io/github/milestones/progress/akaihola/darker/{any_milestone->next_milestone}
- |-
^\.\. \|next-milestone\| image:: https://img\.shields\.io/github/milestones/progress/akaihola/darker/{any_milestone->next_milestone}
- |-
^ version: "~={old_version->new_version}"
- |-
^ version: "~={old_version->new_version}"
- |-
^ - uses: akaihola/darker@{old_version->new_version}
- |-
^ - uses: akaihola/darker@{old_version->new_version}
- |-
^ pip install --upgrade darker~={old_version->new_version}
- |-
^ pip install --upgrade darker~={old_version->new_version}
- |-
label=release%20{any_version->next_version}
- |-
label=release%20{any_version->next_version}
"action.yml":
- |-
^ description: \'Version of Darker to use, e\.g\. "~={old_version->new_version}"
- |-
^ description: \'Version of Darker to use, e\.g\. "~={old_version->new_version}"
- |-
^ description: \'Version of Darker to use, e\.g\. "~=.*?", "{old_version->new_version}"
- |-
^ description: \'Version of Darker to use, e\.g\. "~=.*?", "{old_version->new_version}"
- |-
^ default: "~={old_version->new_version}"
- |-
^ default: "~={old_version->new_version}"
- |-
^ uses: akaihola/darker/.github/actions/commit-range@{old_version->new_version}
- |-
^ uses: akaihola/darker/.github/actions/commit-range@{old_version->new_version}
"src/darker/version.py":
- |-
^__version__ *= *\"{old_version->new_version}\"
- |-
^__version__ *= *\"{old_version->new_version}\"

0 comments on commit 5f7315a

Please sign in to comment.