Skip to content

Conversation

@rzr
Copy link
Contributor

@rzr rzr commented Nov 28, 2025

This is a first pass fixing important and low hanging fruits. Pylint now passing (with relaxed header).

It will be appreciated if future changes can pass linter, and feel free to make it strictier.

This is a first pass fixing important and low hanging fruits.
Pylint now passing (with relaxed header).

It will be appreciated if future changes can pass linter, and feel
free to make it strictier.

Signed-off-by: Philippe Coval <[email protected]>
@stormi
Copy link
Member

stormi commented Nov 28, 2025

Have you talked with Yann and Gaëtan about it? There may be a need for coordination with the broader linting efforts.

# prev_branch is empty when the head was detached
subprocess.check_call(['git', 'checkout', prev_branch or commit])


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doubling newlines is not a rule we chose to enforce at the moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i can revert this, fyi flake8 complained about that

return f'{spec.release}.0.{test_build_id}.{build_nb}'
else:
return f'{spec.release}~{pre_build_id}.{build_nb}'
return f'{spec.release}~{pre_build_id}.{build_nb}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We avoided an else, but do we need to enforce that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure we can skip it

scripts/koji/koji_build.py:145:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)

@stormi stormi requested a review from a team November 28, 2025 18:23
@rzr rzr requested a review from glehmann November 28, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants