diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00022fd1..c8d046bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.7.1" + rev: "v1.8.0" hooks: - id: mypy files: "(src|tests)" diff --git a/docs/pages/guides/docs.md b/docs/pages/guides/docs.md index ecf364f3..6e0a8405 100644 --- a/docs/pages/guides/docs.md +++ b/docs/pages/guides/docs.md @@ -84,7 +84,7 @@ from __future__ import annotations import importlib.metadata project = "package" -copyright = "2023, My Name" +copyright = "2024, My Name" author = "My Name" version = release = importlib.metadata.version("package") diff --git a/src/sp_repo_review/checks/ruff.py b/src/sp_repo_review/checks/ruff.py index 640ff5d6..9c60192c 100644 --- a/src/sp_repo_review/checks/ruff.py +++ b/src/sp_repo_review/checks/ruff.py @@ -31,7 +31,8 @@ def ruff(pyproject: dict[str, Any], root: Traversable) -> dict[str, Any] | None: for path in paths: if path.is_file(): with path.open("rb") as f: - contents = tomllib.load(f) + # Type ignore fixed in https://github.com/hukkin/tomli/pull/215 + contents = tomllib.load(f) # type: ignore[arg-type] if contents.get("extend", "") == "pyproject.toml": extend = pyproject.get("tool", {}).get("ruff", {}) return merge(extend, contents)