Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typo #406

Merged
merged 2 commits into from
Apr 9, 2024
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 docs/pages/guides/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion src/sp_repo_review/checks/ruff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down