Skip to content

Conversation

nathanchance
Copy link
Member

There was a change in pylint 4.0.0 that changes how variable names are treated with regards to upper case versus regular snake case. At the same time, pylint 4.0.0 dropped support for versions of Python older than 3.10. In order to fix the warnings from 4.0.0, we need to drop versions of Python unsupported by 4.0.0 from the matrix, otherwise those versions would start warning because of the old variable name logic.

Addresses the following new warnings from pylint 4.0.0 as spotted in CI:

caching/check.py:46:0: C0103: Variable name "HEADERS" doesn't conform to snake_case naming style (invalid-name)
caching/check.py:166:4: C0103: Variable name "HEADERS" doesn't conform to snake_case naming style (invalid-name)

There was a change in pylint 4.0.0 that changes how variable names are
treated with regards to upper case versus regular snake case. At the
same time, pylint 4.0.0 dropped support for versions of Python older
than 3.10. In order to fix the warnings from 4.0.0, we need to drop
versions of Python unsupported by 4.0.0 from the matrix, otherwise those
versions would start warning because of the old variable name logic.

Signed-off-by: Nathan Chancellor <[email protected]>
After pylint 4.0.0:

  caching/check.py:46:0: C0103: Variable name "HEADERS" doesn't conform to snake_case naming style (invalid-name)
  caching/check.py:166:4: C0103: Variable name "HEADERS" doesn't conform to snake_case naming style (invalid-name)

Signed-off-by: Nathan Chancellor <[email protected]>
@nathanchance nathanchance merged commit fbfccb9 into ClangBuiltLinux:main Oct 15, 2025
8 checks passed
@nathanchance nathanchance deleted the update-python-linting branch October 16, 2025 02:36
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.

2 participants