LOUDO56 / PyMacroRecord

Free and Open Source Macro Recorder with a modern GUI using Python
https://www.pymacrorecord.com/
GNU General Public License v3.0
259 stars 51 forks source link

Fix boolean comparisons #60

Open superstes opened 1 day ago

superstes commented 1 day ago

Boolean comparisons should not be done via == in python. See: https://peps.python.org/pep-0008/#programming-recommendations

Don’t compare boolean values to True or False using ==:
# Correct:
if greeting:

# Wrong:
if greeting == True:

# Wrong:
if greeting is True:
superstes commented 1 day ago

Related to https://github.com/LOUDO56/PyMacroRecord/issues/59 as linting would ensure such recommendations are followed.

Lenochxd commented 1 day ago

nobody cares about that, this PR is completely useless