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
Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW and TOTAL.
Examples:
# goodSOMETHING='hello'defhello():
# good, not a global varsomething='hello'# good, not a constantsomething=User()
# badsomething='hello'
PyLint has C0103 rule to validate it.
Reasoning
Follow PEP-8
The text was updated successfully, but these errors were encountered:
Rule request
Thesis
According to PEP-8:
Examples:
PyLint has
C0103
rule to validate it.Reasoning
Follow PEP-8
The text was updated successfully, but these errors were encountered: