Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: fixes to make pylint happier #1423

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

aparcar
Copy link
Contributor

@aparcar aparcar commented Jun 13, 2024

Description

Right now the CI fails and that makes me and my PRs unhappy.

Checklist

  • Documentation for the feature (no need)
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated (no need)
  • Add a section on how to use the feature to doc/usage.rst (no need)
  • Add a section on how to use the feature to doc/development.rst (no need)
  • PR has been tested
  • Man pages have been regenerated (no need)

Fixes #1406

Right now the CI fails and that makes me and my PRs unhappy.

Signed-off-by: Paul Spooren <[email protected]>
@aparcar
Copy link
Contributor Author

aparcar commented Jun 13, 2024

@jluebbe I'm puzzled with the network_interface.py stuff but the rest should do the trick. Please give this a minute since all CI jobs are broken right now :(

The pylint code warns because of a possibly-used-before-assignment,
which is only valid in case python gobject introspectiuon is not used.
The reason the variable is hidden behind a type check is a hang related
to sphinx, which when trying to import the module for autodoc hangs
forever. The normal case is that the `nm` variable is always assigned
before use, so disable the related warnings.

Signed-off-by: Rouven Czerwinski <[email protected]>
@Emantor
Copy link
Member

Emantor commented Jun 17, 2024

I pushed a commit on top which disables the warnings inside the agent with the reasoning in the commit message.

@Emantor Emantor self-assigned this Jun 17, 2024
@Emantor Emantor marked this pull request as ready for review June 17, 2024 09:10
@Emantor Emantor merged commit 41a19d4 into labgrid-project:master Jun 17, 2024
9 checks passed
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.

linter warnings since pylint 3.2.0
2 participants