Skip to content

Commit 0ce05c4

Browse files
[pre-commit.ci] pre-commit autoupdate (#2763)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.1](astral-sh/ruff-pre-commit@v0.11.12...v0.12.1) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](pre-commit/mirrors-mypy@v1.16.0...v1.16.1) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.1](rbubley/mirrors-prettier@v3.5.3...v3.6.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 8dcd032 commit 0ce05c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repos:
1010
- id: end-of-file-fixer
1111
exclude: tests/testdata
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: "v0.11.12"
13+
rev: "v0.12.1"
1414
hooks:
15-
- id: ruff
15+
- id: ruff-check
1616
args: ["--fix"]
1717
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
1818
rev: 0.1.2
@@ -53,15 +53,15 @@ repos:
5353
# "--load-plugins=pylint.extensions.docparams", We're not ready for that
5454
]
5555
- repo: https://github.com/pre-commit/mirrors-mypy
56-
rev: v1.16.0
56+
rev: v1.16.1
5757
hooks:
5858
- id: mypy
5959
language: python
6060
pass_filenames: false
6161
require_serial: true
6262
additional_dependencies: ["types-typed-ast"]
6363
- repo: https://github.com/rbubley/mirrors-prettier
64-
rev: v3.5.3
64+
rev: v3.6.1
6565
hooks:
6666
- id: prettier
6767
args: [--prose-wrap=always, --print-width=88]

astroid/modutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def file_info_from_modpath(
372372
if modpath[0] == "xml":
373373
# handle _xmlplus
374374
try:
375-
return _spec_from_modpath(["_xmlplus"] + modpath[1:], path, context)
375+
return _spec_from_modpath(["_xmlplus", *modpath[1:]], path, context)
376376
except ImportError:
377377
return _spec_from_modpath(modpath, path, context)
378378
elif modpath == ["os", "path"]:

0 commit comments

Comments
 (0)