Skip to content

Commit 2978634

Browse files
authored
fix: allow patch versions in min version (#388)
* fix: allow patch versions in min version * Apply suggestions from code review
1 parent 4c63d0a commit 2978634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sp_repo_review/checks/pyproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def check(pyproject: dict[str, Any]) -> bool:
8989
```
9090
"""
9191
options = pyproject["tool"]["pytest"]["ini_options"]
92-
return "minversion" in options and float(options["minversion"]) >= 6
92+
return "minversion" in options and int(options["minversion"].split(".")[0]) >= 6
9393

9494

9595
class PP303(PyProject):

0 commit comments

Comments
 (0)