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

Update version of pylint to 3.3.3 #845

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mhucka
Copy link
Member

@mhucka mhucka commented Jan 17, 2025

This updates requirements.txt to use Pylint version 3.3.3 and also updates .pylintrc such that it's compatible with 3.3.3 yet does not raise any new warnings in the code base. The intention of this PR is to make only the minimal changes needed to use pylint 3.3.3.

The .pylintrc started life as the config file produced by pylint 3.3.3 with the --generate-rcfile option. I then compared it to the previous .pylintrc and adjusted the settings to match, followed by a long period of test-adjust-retest:

  1. run pylint on the existing code base
  2. look at the warnings, find the relevant flags & turn them off
  3. if there are more warnings, go back to step 1

This .pylintrc file thus has a lot of pylint checkers commented out. We should systematically re-enable the checkers and fix the warnings in the code. However, that should be left to separate PRs.

This is a `.pylintrc` file that works with pylint 3.3.3. It started life
as the config file produced by pylint 3.3.3 with the
`--generate-rcfile` option. I then compared it to the previous
`.pylintrc` and adjusted the settings to match, followed by a long
period of test-adjust-retest:

1. run `pylint` on the existing code base
2. look at the warnings, find the relevant flags & turn them off
3. if there are more warnings, go back to step 1

This `.pylintrc` file thus has a lot of pylint checkers commented out.
We should systematically re-enable the checkers and fix the warnings
in the code. However, that should be left to separate PRs. This PR
only makes the minimal changes needed to use pylint 3.3.3.
The `lint_all.sh` script invoked `pylint` with a couple of
subdirectories, including `./examples`. However, that directory
doesn't exist.

Apparently Pylint version 2.4.4 didn't complain about this, but later
versions of Pylint do.
@mhucka mhucka marked this pull request as ready for review January 17, 2025 23:10
@mhucka mhucka enabled auto-merge January 17, 2025 23:13
@mhucka mhucka self-assigned this Jan 20, 2025
@mhucka mhucka added the area/ci Concerns continuous integration workflows and infrastructure label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Concerns continuous integration workflows and infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant