Skip to content

Commit e3ced76

Browse files
committed
🚨pylint
1 parent 4ac2db8 commit e3ced76

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/compatibility/versioning.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ def get_latest_release(gh_token: str | None = None) -> GitRelease:
139139

140140

141141
def determine_commits_ahead_behind(cur_version: Version, base_version: Version) -> tuple[int, int]:
142+
"""
143+
Compares the commits of the version tags cur_version...base_version
144+
Returns the number of commits ahead and behind the base_version as tuple.
145+
"""
142146
expected_output_pattern = re.compile(r"^\s*(\d+)\s+(\d+)\s*$")
143147
output = subprocess.check_output(f"git rev-list --left-right --count {cur_version}...{base_version}")
144148
match = expected_output_pattern.fullmatch(output.decode())
@@ -236,4 +240,5 @@ def compare_work_tree_with_latest_version_cli(gh_version: str, gh_token: str | N
236240

237241

238242
if __name__ == "__main__":
243+
# pylint: disable=no-value-for-parameter
239244
compare_work_tree_with_latest_version_cli()

0 commit comments

Comments
 (0)