Skip to content

Commit 31cf98e

Browse files
[pre-commit.ci] pre-commit autoupdate
updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.12.0](astral-sh/ruff-pre-commit@v0.11.11...v0.12.0) - [github.com/rstcheck/rstcheck: v6.2.4 → v6.2.5](rstcheck/rstcheck@v6.2.4...v6.2.5) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](pre-commit/mirrors-mypy@v1.15.0...v1.16.0) Co-authored-by: Pierre Sassoulas <[email protected]> Upgade pre-commit again
1 parent 5a5d114 commit 31cf98e

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ repos:
2020
doc/data/messages/m/missing-final-newline/bad/crlf.py
2121
)$
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: "v0.11.11"
23+
rev: "v0.12.0"
2424
hooks:
25-
- id: ruff
25+
- id: ruff-check
2626
args: ["--fix"]
2727
exclude: doc/data/messages
28-
- id: ruff
28+
- id: ruff-check
2929
name: ruff-doc
3030
files: doc/data/messages
3131
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
@@ -121,14 +121,14 @@ repos:
121121
files: ^(doc/whatsnew/fragments)
122122
exclude: doc/whatsnew/fragments/_.*.rst
123123
- repo: https://github.com/rstcheck/rstcheck
124-
rev: "v6.2.4"
124+
rev: "v6.2.5"
125125
hooks:
126126
- id: rstcheck
127127
args: ["--report-level=warning"]
128128
files: ^(doc/(.*/)*.*\.rst)
129129
additional_dependencies: [Sphinx==7.4.3]
130130
- repo: https://github.com/pre-commit/mirrors-mypy
131-
rev: v1.15.0
131+
rev: v1.16.1
132132
hooks:
133133
- id: mypy
134134
name: mypy
@@ -154,7 +154,7 @@ repos:
154154
args: ["--max-summary-lines=2", "--linewrap-full-docstring"]
155155
files: "pylint"
156156
- repo: https://github.com/PyCQA/bandit
157-
rev: 1.8.3
157+
rev: 1.8.5
158158
hooks:
159159
- id: bandit
160160
args: ["-r", "-lll"]

pylint/checkers/nested_min_max.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def visit_call(self, node: nodes.Call) -> None:
116116
end_col_offset=0,
117117
)
118118
splat_node.value = arg
119-
fixed_node.args = (
120-
fixed_node.args[:idx]
121-
+ [splat_node]
122-
+ fixed_node.args[idx + 1 : idx]
123-
)
119+
fixed_node.args = [
120+
*fixed_node.args[:idx],
121+
splat_node,
122+
*fixed_node.args[idx + 1 : idx],
123+
]
124124

125125
self.add_message(
126126
"nested-min-max",

pylint/reporters/json_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def serialize_stats(self) -> dict[str, str | int | dict[str, int]]:
187187
except Exception as ex: # pylint: disable=broad-except
188188
score: str | int = f"An exception occurred while rating: {ex}"
189189
else:
190-
score = round(note, 2)
190+
score = note
191191

192192
return {
193193
"messageTypeCount": counts_dict,

tests/test_self.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def test_modify_sys_path() -> None:
935935
sys.path = copy(paths)
936936
with _test_environ_pythonpath("/custom_pythonpath:"):
937937
modify_sys_path()
938-
assert sys.path == [paths[1]] + paths[3:]
938+
assert sys.path == [paths[1], *paths[3:]]
939939

940940
paths = ["", cwd, "/custom_pythonpath", *default_paths]
941941
sys.path = copy(paths)

0 commit comments

Comments
 (0)