Skip to content

Commit 83ab727

Browse files
Zeitsperrebsipocz
andauthored
Pinned actions versions and add Dependabot configuration (#62)
--------- Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
1 parent 558a3df commit 83ab727

5 files changed

Lines changed: 31 additions & 17 deletions

File tree

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: "quarterly"
10+
groups:
11+
actions:
12+
patterns:
13+
- "action.yaml"
14+
- "ci.yaml"
15+
update-types:
16+
- "*"
17+
cooldown:
18+
default-days: 14

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: [ubuntu-latest]
1212
strategy:
1313
matrix:
14-
python-version: ["3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1515

1616
steps:
1717
- name: clone the repository
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.2
1919
- name: setup python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: upgrade pip

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v5.0.0
6+
rev: v6.0.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
1010

1111
- repo: https://github.com/psf/black-pre-commit-mirror
12-
rev: 25.1.0
12+
rev: 26.1.0
1313
hooks:
1414
- id: black
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.12.2
17+
rev: v0.15.0
1818
hooks:
19-
- id: ruff
19+
- id: ruff-check
2020
args: ["--fix", "--show-fixes"]
2121

2222
- repo: https://github.com/rbubley/mirrors-prettier
23-
rev: v3.6.2
23+
rev: v3.8.1
2424
hooks:
2525
- id: prettier
2626
args: ["--cache-location=.prettier_cache/cache"]

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ runs:
4646
run: |
4747
python $GITHUB_ACTION_PATH/parse_logs.py ${{ inputs.log-path }}
4848
- name: create the issue
49-
uses: actions/github-script@v7
49+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
5050
with:
5151
github-token: ${{ github.token }}
5252
script: |

parse_logs.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,15 @@ def format_summary(report):
149149

150150

151151
def format_report(summaries, py_version):
152-
template = textwrap.dedent(
153-
"""\
152+
template = textwrap.dedent("""\
154153
<details><summary>Python {py_version} Test Summary</summary>
155154
156155
```
157156
{summaries}
158157
```
159158
160159
</details>
161-
"""
162-
)
160+
""")
163161
# can't use f-strings because that would format *before* the dedenting
164162
message = template.format(summaries="\n".join(summaries), py_version=py_version)
165163
return message
@@ -228,8 +226,7 @@ def compressed_report(reports, max_chars, **formatter_kwargs):
228226

229227

230228
def format_collection_error(error, **formatter_kwargs):
231-
return textwrap.dedent(
232-
"""\
229+
return textwrap.dedent("""\
233230
<details><summary>Python {py_version} Test Summary</summary>
234231
235232
{name} failed:
@@ -238,8 +235,7 @@ def format_collection_error(error, **formatter_kwargs):
238235
```
239236
240237
</details>
241-
"""
242-
).format(py_version=py_version, name=error.name, traceback=error.repr_)
238+
""").format(py_version=py_version, name=error.name, traceback=error.repr_)
243239

244240

245241
if __name__ == "__main__":

0 commit comments

Comments
 (0)