Skip to content

Conversation

@jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #10745

@jacobtylerwalls jacobtylerwalls added this to the 4.0.4 milestone Nov 15, 2025
@jacobtylerwalls jacobtylerwalls added False Positive 🦟 A message is emitted but nothing is wrong with the code C: invalid-name backport maintenance/4.0.x labels Nov 15, 2025
@github-actions

This comment has been minimized.

@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review November 15, 2025 18:59
@codecov
Copy link

codecov bot commented Nov 15, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 95.98%. Comparing base (9052857) to head (da1dd72).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10746   +/-   ##
=======================================
  Coverage   95.98%   95.98%           
=======================================
  Files         176      176           
  Lines       19540    19541    +1     
=======================================
+ Hits        18755    18756    +1     
  Misses        785      785           
Files with missing lines Coverage Ξ”
pylint/checkers/base/name_checker/checker.py 98.77% <100.00%> (+<0.01%) ⬆️
πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

LGTM, but seeing the number of new messages being raised I'm not sure we should backport to 4.0.4.

@jacobtylerwalls
Copy link
Member Author

Good question. I guess my frame is that we've done these dribbles of fixes to invalid-name to get it stable again, and by merging it we're just unblocking people who are waiting to upgrade to 4. If we wait till 4.1 to fix this, we're just leaving the 4.0 documentation incoherent. ("Use exclusive assignment instead. [It works only half the time.]")

@github-actions
Copy link
Contributor

πŸ€– Effect of this PR on checked open source code: πŸ€–

Effect on ansible:
The following messages are now emitted:

  1. invalid-name:
    Constant name "ex_msg" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/cli/__init__.py#L98
  2. invalid-name:
    Constant name "ex_msg" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/cli/__init__.py#L100
  3. invalid-name:
    Constant name "has_journal" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/basic.py#L76
  4. invalid-name:
    Constant name "yaml_load" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/common/yaml.py#L70
  5. invalid-name:
    Constant name "yaml_load_all" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/common/yaml.py#L71
  6. invalid-name:
    Constant name "yaml_dump" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/common/yaml.py#L72
  7. invalid-name:
    Constant name "yaml_dump_all" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/common/yaml.py#L73
  8. invalid-name:
    Constant name "_union_type" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/_internal/_dataclass_validation.py#L23
  9. invalid-name:
    Constant name "distro" doesn't conform to UPPER_CASE naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/modules/apt_repository.py#L198

The following messages are no longer emitted:

  1. invalid-name:
    Variable name "WINRM_IMPORT_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/connection/winrm.py#L202
  2. invalid-name:
    Variable name "WINRM_IMPORT_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/connection/winrm.py#L205
  3. invalid-name:
    Variable name "XMLTODICT_IMPORT_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/connection/winrm.py#L218
  4. invalid-name:
    Variable name "XMLTODICT_IMPORT_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/connection/winrm.py#L221
  5. invalid-name:
    Variable name "NCCLIENT_IMP_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/netconf/__init__.py#L33
  6. invalid-name:
    Variable name "NCCLIENT_IMP_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/plugins/netconf/__init__.py#L39
  7. invalid-name:
    Variable name "GZIP_IMP_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/urls.py#L60
  8. invalid-name:
    Variable name "GZIP_IMP_ERR" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/urls.py#L63
  9. invalid-name:
    Variable name "MAXSIZE" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/six/__init__.py#L58
  10. invalid-name:
    Variable name "MAXSIZE" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/six/__init__.py#L68
  11. invalid-name:
    Variable name "MAXSIZE" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/six/__init__.py#L79
  12. invalid-name:
    Variable name "MAXSIZE" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/six/__init__.py#L82
  13. invalid-name:
    Variable name "RE_FLAGS" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/compat/version.py#L33
  14. invalid-name:
    Variable name "RE_FLAGS" doesn't conform to snake_case naming style
    https://github.com/ansible/ansible/blob/76fb182b63a321aa513ee1c259eb39dd390e94c5/lib/ansible/module_utils/compat/version.py#L35

Effect on django:
The following messages are now emitted:

  1. invalid-name:
    Constant name "Inet" doesn't conform to UPPER_CASE naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/db/backends/postgresql/psycopg_any.py#L12
  2. invalid-name:
    Constant name "NamedTemporaryFile" doesn't conform to UPPER_CASE naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/temp.py#L77

The following messages are no longer emitted:

  1. invalid-name:
    Variable name "Inet" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/db/backends/postgresql/psycopg_any.py#L12
  2. invalid-name:
    Variable name "LOCK_SH" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L45
  3. invalid-name:
    Variable name "LOCK_NB" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L46
  4. invalid-name:
    Variable name "LOCK_EX" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L47
  5. invalid-name:
    Variable name "LOCK_SH" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L101
  6. invalid-name:
    Variable name "LOCK_NB" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L102
  7. invalid-name:
    Variable name "LOCK_EX" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L103
  8. invalid-name:
    Variable name "LOCK_EX" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L106
  9. invalid-name:
    Variable name "LOCK_SH" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L106
  10. invalid-name:
    Variable name "LOCK_NB" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/locks.py#L106
  11. invalid-name:
    Variable name "NamedTemporaryFile" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/5c60763561c67924eff1069e1516b60a59d068d5/django/core/files/temp.py#L77

Effect on pytest:
The following messages are now emitted:

  1. invalid-name:
    Constant name "filescompleter" doesn't conform to UPPER_CASE naming style
    https://github.com/pytest-dev/pytest/blob/b3cd38e2fbfe702be934b54a8e15919441ed3a20/src/_pytest/_argcomplete.py#L117

Effect on astroid:
The following messages are now emitted:

  1. invalid-name:
    Constant name "prefix" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern*
    https://github.com/pylint-dev/astroid/blob/9108781c512972df6e48d930204f10d6ab40fd71/astroid/modutils.py#L80

Effect on psycopg:
The following messages are now emitted:

  1. invalid-name:
    Constant name "PQhostaddr" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L209
  2. invalid-name:
    Constant name "PQfullProtocolVersion" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L244
  3. invalid-name:
    Constant name "PQconnectionUsedGSSAPI" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L275
  4. invalid-name:
    Constant name "PQclosePrepared" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L337
  5. invalid-name:
    Constant name "PQclosePortal" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L338
  6. invalid-name:
    Constant name "PQsendClosePrepared" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L543
  7. invalid-name:
    Constant name "PQsendClosePortal" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L544
  8. invalid-name:
    Constant name "PQsetChunkedRowsMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L581
  9. invalid-name:
    Constant name "PQcancelCreate" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L623
  10. invalid-name:
    Constant name "PQcancelStart" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L624
  11. invalid-name:
    Constant name "PQcancelBlocking" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L625
  12. invalid-name:
    Constant name "PQcancelPoll" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L626
  13. invalid-name:
    Constant name "PQcancelStatus" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L627
  14. invalid-name:
    Constant name "PQcancelSocket" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L628
  15. invalid-name:
    Constant name "PQcancelErrorMessage" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L629
  16. invalid-name:
    Constant name "PQcancelReset" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L630
  17. invalid-name:
    Constant name "PQcancelFinish" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L631
  18. invalid-name:
    Constant name "PQsetTraceFlags" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L681
  19. invalid-name:
    Constant name "PQencryptPasswordConn" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L698
  20. invalid-name:
    Constant name "PQchangePassword" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L705
  21. invalid-name:
    Constant name "PQpipelineStatus" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L748
  22. invalid-name:
    Constant name "PQenterPipelineMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L749
  23. invalid-name:
    Constant name "PQexitPipelineMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L750
  24. invalid-name:
    Constant name "PQpipelineSync" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L751
  25. invalid-name:
    Constant name "PQsendFlushRequest" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L752
  26. invalid-name:
    Constant name "PQhostaddr" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L209
  27. invalid-name:
    Constant name "PQfullProtocolVersion" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L244
  28. invalid-name:
    Constant name "PQconnectionUsedGSSAPI" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L275
  29. invalid-name:
    Constant name "PQclosePrepared" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L337
  30. invalid-name:
    Constant name "PQclosePortal" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L338
  31. invalid-name:
    Constant name "PQsendClosePrepared" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L543
  32. invalid-name:
    Constant name "PQsendClosePortal" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L544
  33. invalid-name:
    Constant name "PQsetChunkedRowsMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L581
  34. invalid-name:
    Constant name "PQcancelCreate" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L623
  35. invalid-name:
    Constant name "PQcancelStart" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L624
  36. invalid-name:
    Constant name "PQcancelBlocking" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L625
  37. invalid-name:
    Constant name "PQcancelPoll" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L626
  38. invalid-name:
    Constant name "PQcancelStatus" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L627
  39. invalid-name:
    Constant name "PQcancelSocket" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L628
  40. invalid-name:
    Constant name "PQcancelErrorMessage" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L629
  41. invalid-name:
    Constant name "PQcancelReset" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L630
  42. invalid-name:
    Constant name "PQcancelFinish" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L631
  43. invalid-name:
    Constant name "PQsetTraceFlags" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L681
  44. invalid-name:
    Constant name "PQencryptPasswordConn" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L698
  45. invalid-name:
    Constant name "PQchangePassword" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L705
  46. invalid-name:
    Constant name "PQpipelineStatus" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L748
  47. invalid-name:
    Constant name "PQenterPipelineMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L749
  48. invalid-name:
    Constant name "PQexitPipelineMode" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L750
  49. invalid-name:
    Constant name "PQpipelineSync" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L751
  50. invalid-name:
    Constant name "PQsendFlushRequest" doesn't conform to UPPER_CASE naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L752

The following messages are no longer emitted:

  1. invalid-name:
    Variable name "_INTERRUPTED" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/connection_async.py#L55
  2. invalid-name:
    Variable name "PQhostaddr" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L209
  3. invalid-name:
    Variable name "PQfullProtocolVersion" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L244
  4. invalid-name:
    Variable name "PQconnectionUsedGSSAPI" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L275
  5. invalid-name:
    Variable name "PQclosePrepared" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L337
  6. invalid-name:
    Variable name "PQclosePortal" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L338
  7. invalid-name:
    Variable name "PQsendClosePrepared" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L543
  8. invalid-name:
    Variable name "PQsendClosePortal" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L544
  9. invalid-name:
    Variable name "PQsetChunkedRowsMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L581
  10. invalid-name:
    Variable name "PQcancelCreate" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L623
  11. invalid-name:
    Variable name "PQcancelStart" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L624
  12. invalid-name:
    Variable name "PQcancelBlocking" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L625
  13. invalid-name:
    Variable name "PQcancelPoll" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L626
  14. invalid-name:
    Variable name "PQcancelStatus" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L627
  15. invalid-name:
    Variable name "PQcancelSocket" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L628
  16. invalid-name:
    Variable name "PQcancelErrorMessage" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L629
  17. invalid-name:
    Variable name "PQcancelReset" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L630
  18. invalid-name:
    Variable name "PQcancelFinish" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L631
  19. invalid-name:
    Variable name "PQsetTraceFlags" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L681
  20. invalid-name:
    Variable name "PQencryptPasswordConn" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L698
  21. invalid-name:
    Variable name "PQchangePassword" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L705
  22. invalid-name:
    Variable name "PQpipelineStatus" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L748
  23. invalid-name:
    Variable name "PQenterPipelineMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L749
  24. invalid-name:
    Variable name "PQexitPipelineMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L750
  25. invalid-name:
    Variable name "PQpipelineSync" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L751
  26. invalid-name:
    Variable name "PQsendFlushRequest" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L752
  27. invalid-name:
    Variable name "PQhostaddr" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L209
  28. invalid-name:
    Variable name "PQfullProtocolVersion" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L244
  29. invalid-name:
    Variable name "PQconnectionUsedGSSAPI" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L275
  30. invalid-name:
    Variable name "PQclosePrepared" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L337
  31. invalid-name:
    Variable name "PQclosePortal" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L338
  32. invalid-name:
    Variable name "PQsendClosePrepared" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L543
  33. invalid-name:
    Variable name "PQsendClosePortal" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L544
  34. invalid-name:
    Variable name "PQsetChunkedRowsMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L581
  35. invalid-name:
    Variable name "PQcancelCreate" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L623
  36. invalid-name:
    Variable name "PQcancelStart" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L624
  37. invalid-name:
    Variable name "PQcancelBlocking" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L625
  38. invalid-name:
    Variable name "PQcancelPoll" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L626
  39. invalid-name:
    Variable name "PQcancelStatus" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L627
  40. invalid-name:
    Variable name "PQcancelSocket" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L628
  41. invalid-name:
    Variable name "PQcancelErrorMessage" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L629
  42. invalid-name:
    Variable name "PQcancelReset" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L630
  43. invalid-name:
    Variable name "PQcancelFinish" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L631
  44. invalid-name:
    Variable name "PQsetTraceFlags" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L681
  45. invalid-name:
    Variable name "PQencryptPasswordConn" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L698
  46. invalid-name:
    Variable name "PQchangePassword" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L705
  47. invalid-name:
    Variable name "PQpipelineStatus" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L748
  48. invalid-name:
    Variable name "PQenterPipelineMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L749
  49. invalid-name:
    Variable name "PQexitPipelineMode" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L750
  50. invalid-name:
    Variable name "PQpipelineSync" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L751
  51. invalid-name:
    Variable name "PQsendFlushRequest" doesn't conform to snake_case naming style
    https://github.com/psycopg/psycopg/blob/b9d533beb5d847ef6837fbd4a011f67730225ffd/psycopg/psycopg/pq/_pq_ctypes.py#L752

Effect on coverage:
The following messages are now emitted:

  1. invalid-name:
    Constant name "has_tomllib" doesn't conform to UPPER_CASE naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/tomlconfig.py#L23

The following messages are no longer emitted:

  1. invalid-name:
    Variable name "YIELD_VALUE" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/pytracer.py#L43
  2. invalid-name:
    Variable name "YIELD_FROM_OFFSET" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/pytracer.py#L45
  3. invalid-name:
    Variable name "YIELD_FROM_OFFSET" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/pytracer.py#L47
  4. invalid-name:
    Variable name "PYPYVERSION" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/env.py#L38
  5. invalid-name:
    Variable name "PYPYVERSION" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/env.py#L40
  6. invalid-name:
    Variable name "CTRACER_FILE" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/core.py#L29
  7. invalid-name:
    Variable name "CTRACER_FILE" doesn't conform to snake_case naming style
    https://github.com/nedbat/coveragepy/blob/961fc5b4a1c40bec6e0d1908b6fb43b84a5d8c6b/coverage/core.py#L44

Effect on music21:
The following messages are now emitted:

  1. invalid-name:
    Constant name "unused_returnCode" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern*
    https://github.com/cuthbertLab/music21/blob/62516b2e70ac4760d1e3eabf7e915344cb3b3049/music21/test/testSingleCoreAll.py#L151
  2. invalid-name:
    Constant name "unused_returnCode" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern*
    https://github.com/cuthbertLab/music21/blob/62516b2e70ac4760d1e3eabf7e915344cb3b3049/music21/test/testSingleCoreAll.py#L153

This comment was generated for commit da1dd72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport maintenance/4.0.x C: invalid-name False Positive 🦟 A message is emitted but nothing is wrong with the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[invalid-name] Failure to recognize exclusive assignment for a value assigned a non-constant

2 participants