Skip to content

Add pylint#171

Merged
Szelethus merged 11 commits intoEricsson:mainfrom
furtib:linting
Feb 24, 2026
Merged

Add pylint#171
Szelethus merged 11 commits intoEricsson:mainfrom
furtib:linting

Conversation

@furtib
Copy link
Contributor

@furtib furtib commented Jan 28, 2026

Why:
To enforce coding standards

What:

  • Added requirements.txt
  • Added a CI workflow for pylint
  • Disabled checks:
    • fixme - We use this to indicate a test being disabled
    • in legacy - code-duplication: This test is mostly untouchable; code duplication is unavoidable
  • Disabled files:
    • template - Errors in this file are to be fixed by the copier. (e.g. self.assertTrue(True) or setUp methods are considered issues by pylint, while they are just unfinished)

Note:

  • Developers can easily obtain PyLint using requirements.txt.

Addresses:
Fixes: #153

@furtib furtib self-assigned this Jan 28, 2026
@furtib furtib added the CI 📦 label Jan 28, 2026
@furtib furtib marked this pull request as ready for review January 28, 2026 13:58
Copy link
Collaborator

@nettle nettle left a comment

Choose a reason for hiding this comment

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

Great initiative! Thanks @furtib!
I'm just wondering why we have only 2 findings? :)
I ran pylint some time before and there were much more findings.
I'll double-check

@nettle
Copy link
Collaborator

nettle commented Jan 28, 2026

Great initiative! Thanks @furtib! I'm just wondering why we have only 2 findings? :) I ran pylint some time before and there were much more findings. I'll double-check

Oh, sorry, there are more!
I just havent noticed :)

Copy link
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

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

I suppose we should fix the issues pylint found, and then merge.

@furtib furtib force-pushed the linting branch 2 times, most recently from 39e4e97 to a8a02c3 Compare February 5, 2026 10:39
@furtib furtib requested a review from Szelethus February 5, 2026 10:41
Copy link
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

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

Can we add this to test/test.sh?

Copy link
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

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

Ugh, I think we could just merge this if we don't open the makefile can of worms. For instance, this is not I set up my environment.

I don't recall, what was the argument against adding this to test.sh?

@furtib
Copy link
Contributor Author

furtib commented Feb 24, 2026

Okay, I will remove the Makefile and try to make running the linters easier locally in a follow-up patch.

The argument against changing test.sh is that that specific file is used by a testing CI, which does not have pylint installed.

@furtib furtib requested a review from Szelethus February 24, 2026 10:11
Copy link
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

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

Send it.

@Szelethus Szelethus merged commit f4a3693 into Ericsson:main Feb 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyLint

3 participants