-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
C: invalid-nameFalse Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeNeeds decision 🔒Needs a decision before implemention or rejectionNeeds a decision before implemention or rejection
Description
Bug description
pylint --include-naming-hint=y utils/myfile.py
utils/myfile.py:16:0: C0103: Constant name "_g_is_installed" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name)This is the content - the global is changed later on hence it is not a const:
_g_is_installed = False
def x():
global _g_is_installed
_g_is_installed = True
Configuration
Command used
pylint --include-naming-hint=y myfile.pyPylint output
myfile.py:16:0: C0103: Constant name "_g_is_installed" doesn't conform to UPPER_CASE naming style ('([^\\W\\da-z][^\\Wa-z]*|__.*__)$' pattern) (invalid-name)Expected behavior
Before the upgrade it was passing
Pylint version
python 3.12
pylint 4.0.4
astroid 4.0.2OS / Environment
No response
Additional dependencies
Metadata
Metadata
Assignees
Labels
C: invalid-nameFalse Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeNeeds decision 🔒Needs a decision before implemention or rejectionNeeds a decision before implemention or rejection