Skip to content

Commit 3c03238

Browse files
committed
Update pre-commit and apply Ruff changes
1 parent 8885235 commit 3c03238

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.7.1
17+
rev: v0.9.6
1818
hooks:
1919
- id: ruff-format
2020

2121
- repo: https://github.com/python-jsonschema/check-jsonschema
22-
rev: 0.29.4
22+
rev: 0.31.1
2323
hooks:
2424
- id: check-github-workflows
2525

2626
- repo: https://github.com/rhysd/actionlint
27-
rev: v1.7.3
27+
rev: v1.7.7
2828
hooks:
2929
- id: actionlint
3030

@@ -39,17 +39,17 @@ repos:
3939
- id: pyproject-fmt
4040

4141
- repo: https://github.com/abravalheri/validate-pyproject
42-
rev: v0.22
42+
rev: v0.23
4343
hooks:
4444
- id: validate-pyproject
4545

4646
- repo: https://github.com/tox-dev/tox-ini-fmt
47-
rev: 1.4.1
47+
rev: 1.5.0
4848
hooks:
4949
- id: tox-ini-fmt
5050

5151
- repo: https://github.com/rbubley/mirrors-prettier
52-
rev: v3.3.3
52+
rev: v3.5.1
5353
hooks:
5454
- id: prettier
5555
files: templates/switchers.js

build_docs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, name, *, status, branch_or_tag=None):
8686
if status not in self.STATUSES:
8787
raise ValueError(
8888
"Version status expected to be one of: "
89-
f"{', '.join(self.STATUSES|set(self.SYNONYMS.keys()))}, got {status!r}."
89+
f"{', '.join(self.STATUSES | set(self.SYNONYMS.keys()))}, got {status!r}."
9090
)
9191
self.name = name
9292
self.branch_or_tag = branch_or_tag
@@ -732,8 +732,7 @@ def build(self):
732732
shell=True,
733733
)
734734
subprocess.check_output(
735-
"sed -i s/\N{REPLACEMENT CHARACTER}/?/g "
736-
f"{self.checkout}/Doc/**/*.rst",
735+
f"sed -i s/\N{REPLACEMENT CHARACTER}/?/g {self.checkout}/Doc/**/*.rst",
737736
shell=True,
738737
)
739738

check_times.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def calc_time(lines: list[str]) -> None:
5050
fmt_duration = format_seconds(state_data["last_build_duration"])
5151
reason = state_data["triggered_by"]
5252
print(
53-
f"{start:%Y-%m-%d %H:%M UTC} | {version: <7} | {language: <8} | {fmt_duration :<14} | {reason}"
53+
f"{start:%Y-%m-%d %H:%M UTC} | {version: <7} | {language: <8} | {fmt_duration:<14} | {reason}"
5454
)
5555

5656
if line.endswith("Build start."):
@@ -64,7 +64,7 @@ def calc_time(lines: list[str]) -> None:
6464
timestamp = f"{line[:16]} UTC"
6565
_, fmt_duration = line.removesuffix(").").split("(")
6666
print(
67-
f"{timestamp: <20} | --FULL- | -BUILD-- | {fmt_duration :<14} | -----------"
67+
f"{timestamp: <20} | --FULL- | -BUILD-- | {fmt_duration:<14} | -----------"
6868
)
6969

7070
if in_progress:

0 commit comments

Comments
 (0)