diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bbb58a42e..ce3f799ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -53,7 +53,7 @@ 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 @@ -61,7 +61,7 @@ repos: 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] diff --git a/astroid/modutils.py b/astroid/modutils.py index 6b84fe761..918146c5a 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -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"]: