Skip to content

Commit

Permalink
Disable inconsistent return type check
Browse files Browse the repository at this point in the history
In this case, if major version is not returned from the block, the
function will never return but fail - so the check is not correct.
  • Loading branch information
engelhardtnick-at-TW committed Nov 5, 2024
1 parent 02c95b6 commit 604a870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/test_validate_spark_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __extract_version_line(java_version_output: str) -> str:
return version_line


# pylint: disable=R1710
def __parse_major_version(version_line: str) -> int:
version_regex = re.compile(r'version "(?P<major>\d+)\.(?P<minor>\d+)\.\w+"')
match = version_regex.search(version_line)
Expand Down

0 comments on commit 604a870

Please sign in to comment.