epignatelli / navix

Accelerated minigrid environments with JAX
Apache License 2.0
116 stars 10 forks source link

fix(graphics): change colour chart to work with RGB colours rather than RGBA #23

Closed epignatelli closed 1 year ago

github-actions[bot] commented 1 year ago
************* Module navix.graphics
navix/graphics.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/graphics.py:47:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:95:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:101:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:107:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:116:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:122:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:128:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:134:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:146:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:146:14: W0613: Unused argument 'size' (unused-argument)
navix/graphics.py:160:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:160:0: R0914: Too many local variables (17/15) (too-many-locals)
navix/graphics.py:166:4: C0103: Variable name "y" doesn't conform to snake_case naming style (invalid-name)
navix/graphics.py:166:7: C0103: Variable name "x" doesn't conform to snake_case naming style (invalid-name)
navix/graphics.py:196:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:202:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:207:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/graphics.py:1:0: W0611: Unused import jax (unused-import)

Report
======
126 statements analysed.

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

+---------+-------+-----------+-----------+------------+---------+
|type     |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module   |1      |NC         |NC         |0.00        |0.00     |
+---------+-------+-----------+-----------+------------+---------+
|class    |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|method   |0      |NC         |NC         |0           |0        |
+---------+-------+-----------+-----------+------------+---------+
|function |13     |NC         |NC         |0.00        |0.00     |
+---------+-------+-----------+-----------+------------+---------+

211 lines have been analyzed

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

+----------+-------+------+---------+-----------+
|type      |number |%     |previous |difference |
+==========+=======+======+=========+===========+
|code      |175    |82.94 |NC       |NC         |
+----------+-------+------+---------+-----------+
|docstring |0      |0.00  |NC       |NC         |
+----------+-------+------+---------+-----------+
|comment   |3      |1.42  |NC       |NC         |
+----------+-------+------+---------+-----------+
|empty     |33     |15.64 |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 |16     |NC       |NC         |
+-----------+-------+---------+-----------+
|refactor   |1      |NC       |NC         |
+-----------+-------+---------+-----------+
|warning    |2      |NC       |NC         |
+-----------+-------+---------+-----------+
|error      |0      |NC       |NC         |
+-----------+-------+---------+-----------+

Messages
--------

+---------------------------+------------+
|message id                 |occurrences |
+===========================+============+
|missing-function-docstring |13          |
+---------------------------+------------+
|invalid-name               |2           |
+---------------------------+------------+
|unused-import              |1           |
+---------------------------+------------+
|unused-argument            |1           |
+---------------------------+------------+
|too-many-locals            |1           |
+---------------------------+------------+
|missing-module-docstring   |1           |
+---------------------------+------------+

-----------------------------------
Your code has been rated at 8.49/10
epignatelli commented 1 year ago

Solves #22