Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ repos:
- id: end-of-file-fixer
exclude: tests/testdata
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.12"
rev: "v0.12.1"
hooks:
- id: ruff
- id: ruff-check
args: ["--fix"]
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
rev: 0.1.2
Expand Down Expand Up @@ -53,15 +53,15 @@ repos:
# "--load-plugins=pylint.extensions.docparams", We're not ready for that
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
rev: v1.16.1
hooks:
- id: mypy
language: python
pass_filenames: false
require_serial: true
additional_dependencies: ["types-typed-ast"]
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
rev: v3.6.1
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
Expand Down
2 changes: 1 addition & 1 deletion astroid/modutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def file_info_from_modpath(
if modpath[0] == "xml":
# handle _xmlplus
try:
return _spec_from_modpath(["_xmlplus"] + modpath[1:], path, context)
return _spec_from_modpath(["_xmlplus", *modpath[1:]], path, context)
except ImportError:
return _spec_from_modpath(modpath, path, context)
elif modpath == ["os", "path"]:
Expand Down