ColinRobbins / scm-helper

Helper tool to manage data in Swim Club Manager
MIT License
3 stars 0 forks source link

PYLint #37

Closed ColinRobbins closed 3 years ago

ColinRobbins commented 3 years ago

Describe the bug Latest version of pylint is reporting a few new errors

To Reproduce Run pylint

Expected behavior No errors

ColinRobbins commented 3 years ago
************* Module api
api.py:512:21: E1135: Value 'self._config' doesn't support membership test (unsupported-membership-test)
api.py:513:19: E1136: Value 'self._config' is unsubscriptable (unsubscriptable-object)
************* Module files
files.py:27:8: C0206: Consider iterating with .items() (consider-using-dict-items)
************* Module gui
gui.py:269:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:315:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:325:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:387:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:397:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:413:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:444:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:599:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
gui.py:894:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
gui.py:916:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
************* Module issue
issue.py:572:8: C0206: Consider iterating with .items() (consider-using-dict-items)
issue.py:593:8: C0206: Consider iterating with .items() (consider-using-dict-items)
ColinRobbins commented 3 years ago

Fixed