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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
3 changes: 2 additions & 1 deletion src/sp_repo_review/checks/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down