[pre-commit.ci] pre-commit autoupdate (#3025)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.8 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.8...v0.15.9)
- [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0)
- [github.com/tox-dev/pyproject-fmt: v2.20.0 → v2.21.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.20.0...v2.21.0)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 60f4ceb..529ddfe 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@
- id: end-of-file-fixer
exclude: tests/testdata
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: "v0.15.8"
+ rev: "v0.15.9"
hooks:
- id: ruff-check
args: ["--fix"]
@@ -68,7 +68,7 @@
]
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.19.1
+ rev: v1.20.0
hooks:
- id: mypy
language: python
@@ -81,6 +81,6 @@
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/tox-dev/pyproject-fmt
- rev: "v2.20.0"
+ rev: "v2.21.0"
hooks:
- id: pyproject-fmt
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py
index af7c55b..6caa52c 100644
--- a/astroid/interpreter/_import/spec.py
+++ b/astroid/interpreter/_import/spec.py
@@ -185,7 +185,7 @@
and spec.loader # type: ignore[comparison-overlap] # noqa: E501
is importlib.machinery.FrozenImporter
):
- return ModuleSpec(
+ return ModuleSpec( # type: ignore[unreachable]
name=modname,
location=getattr(spec.loader_state, "filename", None),
type=ModuleType.PY_FROZEN,
diff --git a/pyproject.toml b/pyproject.toml
index 0e61d23..9316ce1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -129,6 +129,7 @@
strict = true
warn_redundant_casts = true
warn_unreachable = true
+warn_unused_configs = false
[[tool.mypy.overrides]]
# Importlib typeshed stubs do not include the private functions we use