You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
Python does not have constants, and the convention Pylint wants is that module globals are treated as constants and use UPPER_CASE naming style. I believe what we’re doing is:
Module globals set during import are treated as constants and use UPPER_CASE.
Module globals set once, then treated as constant; we use snake_case for these.
True global variables, snake_case.
Groups 1 and 2 should be set once only and constant after that. I don't know how many 3 we have.
Pylint also just doesn’t want us to use global at all which honestly makes sense.
The text was updated successfully, but these errors were encountered:
Split from #1860. Pylint:
charliecloud/lib/build_cache.py
Lines 140 to 144 in d679373
Python does not have constants, and the convention Pylint wants is that module globals are treated as constants and use UPPER_CASE naming style. I believe what we’re doing is:
Module globals set during import are treated as constants and use UPPER_CASE.
Module globals set once, then treated as constant; we use snake_case for these.
True global variables, snake_case.
Groups 1 and 2 should be set once only and constant after that. I don't know how many 3 we have.
Pylint also just doesn’t want us to use
global
at all which honestly makes sense.The text was updated successfully, but these errors were encountered: