epignatelli / helx

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

Issues 34/35/36 #38

Closed epignatelli closed 1 year ago

github-actions[bot] commented 1 year ago
************* Module helx
helx/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module helx.download
helx/download.py:91:0: C0301: Line too long (110/100) (line-too-long)
helx/download.py:1:0: C0114: Missing module docstring (missing-module-docstring)
helx/download.py:38:4: C0103: Variable name "r" doesn't conform to snake_case naming style (invalid-name)
helx/download.py:38:8: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
helx/download.py:39:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
helx/download.py:40:33: C0103: Variable name "fd" doesn't conform to snake_case naming style (invalid-name)
helx/download.py:47:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/download.py:79:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
helx/download.py:90:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/download.py:126:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
helx/download.py:132:0: C0116: Missing function or method docstring (missing-function-docstring)
helx/download.py:143:4: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
helx/download.py:150:11: W0703: Catching too general exception Exception (broad-except)
helx/download.py:150:4: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
helx/download.py:157:0: C0116: Missing function or method docstring (missing-function-docstring)

Report
======
90 statements analysed.

Statistics by type
------------------

+---------+-------+-----------+-----------+------------+---------+
|type     |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module   |2      |NC         |NC         |0.00        |0.00     |
+---------+-------+-----------+-----------+------------+---------+
|class    |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|method   |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|function |5      |NC         |NC         |20.00       |0.00     |
+---------+-------+-----------+-----------+------------+---------+

External dependencies
---------------------
::

    requests (helx.download)

199 lines have been analyzed

Raw metrics
-----------

+----------+-------+------+---------+-----------+
|type      |number |%     |previous |difference |
+==========+=======+======+=========+===========+
|code      |112    |56.28 |NC       |NC         |
+----------+-------+------+---------+-----------+
|docstring |11     |5.53  |NC       |NC         |
+----------+-------+------+---------+-----------+
|comment   |43     |21.61 |NC       |NC         |
+----------+-------+------+---------+-----------+
|empty     |33     |16.58 |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 |10     |NC       |NC         |
+-----------+-------+---------+-----------+
|refactor   |0      |NC       |NC         |
+-----------+-------+---------+-----------+
|warning    |6      |NC       |NC         |
+-----------+-------+---------+-----------+
|error      |0      |NC       |NC         |
+-----------+-------+---------+-----------+

Messages
--------

+------------------------------+------------+
|message id                    |occurrences |
+==============================+============+
|missing-function-docstring    |4           |
+------------------------------+------------+
|logging-fstring-interpolation |4           |
+------------------------------+------------+
|invalid-name                  |3           |
+------------------------------+------------+
|missing-module-docstring      |2           |
+------------------------------+------------+
|missing-timeout               |1           |
+------------------------------+------------+
|line-too-long                 |1           |
+------------------------------+------------+
|broad-except                  |1           |
+------------------------------+------------+

-----------------------------------
Your code has been rated at 8.22/10