Skip to content

Commit e4336fb

Browse files
Bump Ruff and use formatter (#96)
1 parent ba478fc commit e4336fb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: "v0.7.0"
17+
rev: "v0.9.2"
1818
hooks:
1919
- id: ruff
2020
args: ["--fix", "--show-fixes"]
21+
- id: ruff-format

plugin_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def test_error():
4949
result = testdir.runpytest_subprocess()
5050

5151
result.stderr.re_match_lines(
52-
[r"::error file=test_annotation_pytest_error\.py,line=8::test_error.*",]
52+
[
53+
r"::error file=test_annotation_pytest_error\.py,line=8::test_error.*",
54+
]
5355
)
5456

5557

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ extend-select = [
7777
]
7878
ignore = [
7979
"PLR", # Design related pylint codes
80-
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
8180
]
8281
isort.required-imports = ["from __future__ import annotations"]
8382

pytest_github_actions_annotate_failures/plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from __future__ import annotations
32

43
import contextlib
@@ -133,6 +132,7 @@ def pytest_addoption(parser):
133132
help="Annotate failures in GitHub Actions.",
134133
)
135134

135+
136136
def pytest_configure(config):
137137
if not config.option.exclude_warning_annotations:
138138
config.pluginmanager.register(_AnnotateWarnings(), "annotate_warnings")
@@ -160,9 +160,7 @@ def _build_workflow_command(
160160
("title", title),
161161
]
162162

163-
result = result + ",".join(
164-
f"{k}={v}" for k, v in entries if v is not None
165-
)
163+
result = result + ",".join(f"{k}={v}" for k, v in entries if v is not None)
166164

167165
if message is not None:
168166
result = result + "::" + _escape(message)

0 commit comments

Comments
 (0)