Closed epignatelli closed 10 months ago
************* Module helx_base helx_base/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module helx_base._version helx_base/_version.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module helx_base.config helx_base/config.py:1:0: C0114: Missing module docstring (missing-module-docstring) helx_base/config.py:27:0: C0115: Missing class docstring (missing-class-docstring) helx_base/config.py:28:4: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:27:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/config.py:62:0: C0115: Missing class docstring (missing-class-docstring) helx_base/config.py:63:4: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:62:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/config.py:102:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:103:4: R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return) helx_base/config.py:118:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) helx_base/config.py:102:0: R0911: Too many return statements (7/6) (too-many-return-statements) helx_base/config.py:121:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:130:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:130:0: R1711: Useless return at end of function or method (useless-return) helx_base/config.py:160:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:161:48: W0621: Redefining name 'flags' from outer scope (line 21) (redefined-outer-name) helx_base/config.py:171:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) helx_base/config.py:178:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/config.py:180:4: W0101: Unreachable code (unreachable) helx_base/config.py:180:4: C0415: Import outside toplevel (yaml) (import-outside-toplevel) helx_base/config.py:182:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) ************* Module helx_base.image helx_base/image.py:1:0: C0114: Missing module docstring (missing-module-docstring) helx_base/image.py:24:0: C0116: Missing function or method docstring (missing-function-docstring) helx_base/image.py:29:7: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) helx_base/image.py:64:12: W1202: Use lazy % formatting in logging functions (logging-format-interpolation) helx_base/image.py:64:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) ************* Module helx_base.mdp helx_base/mdp.py:36:0: C0301: Line too long (105/100) (line-too-long) helx_base/mdp.py:1:0: C0114: Missing module docstring (missing-module-docstring) helx_base/mdp.py:30:0: C0115: Missing class docstring (missing-class-docstring) helx_base/mdp.py:30:0: R0903: Too few public methods (0/2) (too-few-public-methods) ************* Module helx_base.modules helx_base/modules.py:1:0: C0114: Missing module docstring (missing-module-docstring) helx_base/modules.py:25:0: C0115: Missing class docstring (missing-class-docstring) helx_base/modules.py:25:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:33:0: C0115: Missing class docstring (missing-class-docstring) helx_base/modules.py:33:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:43:0: C0115: Missing class docstring (missing-class-docstring) helx_base/modules.py:43:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:51:0: C0115: Missing class docstring (missing-class-docstring) helx_base/modules.py:51:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:59:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:67:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:75:0: C0115: Missing class docstring (missing-class-docstring) helx_base/modules.py:75:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:107:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate) helx_base/modules.py:87:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/modules.py:148:4: C0116: Missing function or method docstring (missing-function-docstring) helx_base/modules.py:154:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) helx_base/modules.py:160:8: W0201: Attribute 'modules' defined outside __init__ (attribute-defined-outside-init) ************* Module helx_base.spaces helx_base/spaces.py:1:0: C0114: Missing module docstring (missing-module-docstring) helx_base/spaces.py:25:0: W0404: Reimport 'Shape' (imported line 23) (reimported) helx_base/spaces.py:34:0: C0115: Missing class docstring (missing-class-docstring) helx_base/spaces.py:40:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) helx_base/spaces.py:44:4: C0116: Missing function or method docstring (missing-function-docstring) helx_base/spaces.py:48:0: C0115: Missing class docstring (missing-class-docstring) helx_base/spaces.py:48:0: R0903: Too few public methods (1/2) (too-few-public-methods) helx_base/spaces.py:60:0: C0115: Missing class docstring (missing-class-docstring) helx_base/spaces.py:60:0: R0903: Too few public methods (1/2) (too-few-public-methods) Report ====== 245 statements analysed. Statistics by type ------------------ +---------+-------+-----------+-----------+------------+---------+ |type |number |old number |difference |%documented |%badname | +=========+=======+===========+===========+============+=========+ |module |7 |NC |NC |0.00 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |class |15 |NC |NC |26.67 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |method |18 |NC |NC |77.78 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |function |10 |NC |NC |40.00 |20.00 | +---------+-------+-----------+-----------+------------+---------+ External dependencies --------------------- :: yaml (helx_base.config) 605 lines have been analyzed Raw metrics ----------- +----------+-------+------+---------+-----------+ |type |number |% |previous |difference | +==========+=======+======+=========+===========+ |code |318 |52.56 |NC |NC | +----------+-------+------+---------+-----------+ |docstring |99 |16.36 |NC |NC | +----------+-------+------+---------+-----------+ |comment |91 |15.04 |NC |NC | +----------+-------+------+---------+-----------+ |empty |97 |16.03 |NC |NC | +----------+-------+------+---------+-----------+ Duplication ----------- +-------------------------+------+---------+-----------+ | |now |previous |difference | +=========================+======+=========+===========+ |nb duplicated lines |0 |NC |NC | +-------------------------+------+---------+-----------+ |percent duplicated lines |0.000 |NC |NC | +-------------------------+------+---------+-----------+ Messages by category -------------------- +-----------+-------+---------+-----------+ |type |number |previous |difference | +===========+=======+=========+===========+ |convention |37 |NC |NC | +-----------+-------+---------+-----------+ |refactor |16 |NC |NC | +-----------+-------+---------+-----------+ |warning |6 |NC |NC | +-----------+-------+---------+-----------+ |error |0 |NC |NC | +-----------+-------+---------+-----------+ Messages -------- +-------------------------------+------------+ |message id |occurrences | +===============================+============+ |too-few-public-methods |13 | +-------------------------------+------------+ |missing-class-docstring |11 | +-------------------------------+------------+ |missing-function-docstring |10 | +-------------------------------+------------+ |missing-module-docstring |7 | +-------------------------------+------------+ |consider-using-f-string |6 | +-------------------------------+------------+ |useless-return |1 | +-------------------------------+------------+ |unspecified-encoding |1 | +-------------------------------+------------+ |unreachable |1 | +-------------------------------+------------+ |too-many-return-statements |1 | +-------------------------------+------------+ |reimported |1 | +-------------------------------+------------+ |redefined-outer-name |1 | +-------------------------------+------------+ |no-else-return |1 | +-------------------------------+------------+ |logging-format-interpolation |1 | +-------------------------------+------------+ |line-too-long |1 | +-------------------------------+------------+ |import-outside-toplevel |1 | +-------------------------------+------------+ |consider-using-enumerate |1 | +-------------------------------+------------+ |attribute-defined-outside-init |1 | +-------------------------------+------------+ ----------------------------------- Your code has been rated at 7.59/10