From c368c353f6954c55e33c16c7acdaf7c744481866 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:41:22 +0200 Subject: [PATCH 1/2] docs: fix typo --- src/sp_repo_review/checks/ruff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp_repo_review/checks/ruff.py b/src/sp_repo_review/checks/ruff.py index b7ae9945..4353309c 100644 --- a/src/sp_repo_review/checks/ruff.py +++ b/src/sp_repo_review/checks/ruff.py @@ -75,7 +75,7 @@ def check(pyproject: dict[str, Any], ruff: dict[str, Any]) -> bool | str: match pyproject: case {"project": {"requires-python": str()}}: if "target-version" in ruff: - return "You have both Ruff's `target-version` and `project.requires-python`. You only need the later." + return "You have both Ruff's `target-version` and `project.requires-python`. You only need the latter." return True case _: return "target-version" in ruff From 2eb83fa4dbfbd15a27aed9f86f5581406ecd60c1 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:42:49 +0200 Subject: [PATCH 2/2] docs: fix typo newly found by codespell --- docs/pages/guides/style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/guides/style.md b/docs/pages/guides/style.md index d1532311..10953c4b 100644 --- a/docs/pages/guides/style.md +++ b/docs/pages/guides/style.md @@ -582,7 +582,7 @@ command line. `strict = true` is now allowed in config files, too The extra strict options shown above, like `warn_unreachable` {% rr MY103 %}, and `ignore-without-code` {% rr MY104 %}, `redundant-expr` {% rr MY105 %}, and `truthy-bool` {% rr MY106 %} can trigger too often (like on `sys.platform` -checks) and have to be ignored occasionally, but can find some signifiant logic +checks) and have to be ignored occasionally, but can find some significant logic errors in your typing. [mypy page]: {% link pages/guides/mypy.md %}