epignatelli / helx

Interoperating between (Deep) Reiforcement Learning libraries
Apache License 2.0
10 stars 6 forks source link

Break the repo down into 4 main nodes #60

Closed epignatelli closed 10 months ago

epignatelli commented 10 months ago
github-actions[bot] commented 10 months ago
************* Module helx
helx/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module helx._version
helx/_version.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module helx.config
helx/config.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/config.py:27:0: C0115: Missing class docstring (missing-class-docstring)
helx/config.py:28:4: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:27:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/config.py:62:0: C0115: Missing class docstring (missing-class-docstring)
helx/config.py:63:4: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:62:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/config.py:102:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:103:4: R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
helx/config.py:118:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
helx/config.py:102:0: R0911: Too many return statements (7/6) (too-many-return-statements)
helx/config.py:121:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:130:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:130:0: R1711: Useless return at end of function or method (useless-return)
helx/config.py:160:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:161:48: W0621: Redefining name 'flags' from outer scope (line 21) (redefined-outer-name)
helx/config.py:171:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
helx/config.py:178:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/config.py:180:4: W0101: Unreachable code (unreachable)
helx/config.py:180:4: C0415: Import outside toplevel (yaml) (import-outside-toplevel)
helx/config.py:182:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
************* Module helx.image
helx/image.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/image.py:24:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/image.py:29:7: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
helx/image.py:64:12: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
helx/image.py:64:12: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
************* Module helx.mdp
helx/mdp.py:36:0: C0301: Line too long (105/100) (line-too-long)
helx/mdp.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/mdp.py:30:0: C0115: Missing class docstring (missing-class-docstring)
helx/mdp.py:30:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module helx.modules
helx/modules.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/modules.py:25:0: C0115: Missing class docstring (missing-class-docstring)
helx/modules.py:25:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:33:0: C0115: Missing class docstring (missing-class-docstring)
helx/modules.py:33:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:43:0: C0115: Missing class docstring (missing-class-docstring)
helx/modules.py:43:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:51:0: C0115: Missing class docstring (missing-class-docstring)
helx/modules.py:51:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:59:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:67:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:75:0: C0115: Missing class docstring (missing-class-docstring)
helx/modules.py:75:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:107:8: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
helx/modules.py:87:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/modules.py:148:4: C0116: Missing function or method docstring (missing-function-docstring)
helx/modules.py:154:11: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
helx/modules.py:160:8: W0201: Attribute 'modules' defined outside __init__ (attribute-defined-outside-init)
************* Module helx.spaces
helx/spaces.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/spaces.py:25:0: W0404: Reimport 'Shape' (imported line 23) (reimported)
helx/spaces.py:34:0: C0115: Missing class docstring (missing-class-docstring)
helx/spaces.py:40:15: C0209: Formatting a regular string which could be an f-string (consider-using-f-string)
helx/spaces.py:44:4: C0116: Missing function or method docstring (missing-function-docstring)
helx/spaces.py:48:0: C0115: Missing class docstring (missing-class-docstring)
helx/spaces.py:48:0: R0903: Too few public methods (1/2) (too-few-public-methods)
helx/spaces.py:60:0: C0115: Missing class docstring (missing-class-docstring)
helx/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.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