From 88a09e5269d059f7f48196c7abd896597ac9fdd5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 20:39:36 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.12.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.12.1) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.1](https://github.com/rbubley/mirrors-prettier/compare/v3.5.3...v3.6.1) Co-authored-by: Pierre Sassoulas --- .pre-commit-config.yaml | 8 ++++---- astroid/modutils.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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"]: