Skip to content

Commit

Permalink
Correctly set per-platform requirements in mypy GHA when Linux has de…
Browse files Browse the repository at this point in the history
…fault requirements.
  • Loading branch information
domdfcoding committed Sep 2, 2024
1 parent 6f51446 commit e0a0107
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions repo_helper/files/ci_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,11 @@ def make_mypy(self) -> PathPlus:
if "Linux" not in platforms:
linux_dependency_lines = self.standard_python_install_lines

if linux_dependency_lines == self.standard_python_install_lines:
platform_specific_blocks = False
if linux_dependency_lines != self.standard_python_install_lines:
platform_specific_blocks = True
if windows_dependency_lines != self.standard_python_install_lines:
platform_specific_blocks = True

if linux_dependency_lines == windows_dependency_lines:
platform_specific_blocks = False
if "Linux" in platforms and "Windows" not in platforms:
Expand Down

0 comments on commit e0a0107

Please sign in to comment.