************* Module navix
navix/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module navix._version
navix/_version.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module navix.entities
navix/entities.py:63:0: C0301: Line too long (103/100) (line-too-long)
navix/entities.py:218:0: C0301: Line too long (105/100) (line-too-long)
navix/entities.py:219:0: C0301: Line too long (112/100) (line-too-long)
navix/entities.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/entities.py:28:0: C0115: Missing class docstring (missing-class-docstring)
navix/entities.py:28:0: R0903: Too few public methods (0/2) (too-few-public-methods)
navix/entities.py:71:15: E1101: Instance of 'Field' has no 'shape' member (no-member)
navix/entities.py:71:37: E1101: Instance of 'Field' has no 'ndim' member (no-member)
navix/entities.py:74:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:78:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:86:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:102:34: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:114:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:132:34: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:148:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:165:34: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:170:30: E1101: Instance of 'Field' has no 'shape' member (no-member)
navix/entities.py:184:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:187:8: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
navix/entities.py:187:8: W0622: Redefining built-in 'id' (redefined-builtin)
navix/entities.py:201:34: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:206:30: E1101: Instance of 'Field' has no 'shape' member (no-member)
navix/entities.py:225:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:230:8: W0622: Redefining built-in 'open' (redefined-builtin)
navix/entities.py:244:34: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:251:30: E1101: Instance of 'Field' has no 'shape' member (no-member)
navix/entities.py:273:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:276:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:280:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:281:33: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:283:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:284:22: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:287:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:288:29: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:290:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:292:22: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:290:41: W0613: Unused argument 'idx' (unused-argument)
navix/entities.py:295:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:296:29: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:298:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:299:22: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:302:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:303:29: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:305:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:306:22: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:309:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:310:29: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:312:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:313:22: E1101: Instance of 'str' has no 'value' member (no-member)
navix/entities.py:316:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:319:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:322:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:325:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/entities.py:9:0: C0412: Imports from package jax are not grouped (ungrouped-imports)
navix/entities.py:3:0: W0611: Unused Type imported from typing (unused-import)
************* Module navix.environments.environment
navix/environments/environment.py:56:0: C0301: Line too long (105/100) (line-too-long)
navix/environments/environment.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/environments/environment.py:41:0: C0115: Missing class docstring (missing-class-docstring)
navix/environments/environment.py:50:0: C0115: Missing class docstring (missing-class-docstring)
navix/environments/environment.py:50:0: R0903: Too few public methods (0/2) (too-few-public-methods)
navix/environments/environment.py:67:0: C0115: Missing class docstring (missing-class-docstring)
navix/environments/environment.py:83:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:84:8: R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
navix/environments/environment.py:84:11: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
navix/environments/environment.py:86:13: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
navix/environments/environment.py:88:13: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
navix/environments/environment.py:91:13: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
navix/environments/environment.py:97:13: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
navix/environments/environment.py:106:16: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
navix/environments/environment.py:112:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:116:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:119:4: W0102: Dangerous default value ACTIONS (builtins.dict) as argument (dangerous-default-value)
navix/environments/environment.py:133:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:133:4: W0102: Dangerous default value ACTIONS (builtins.dict) as argument (dangerous-default-value)
navix/environments/environment.py:143:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:146:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:149:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/environments/environment.py:150:62: C0103: Argument name "t" doesn't conform to snake_case naming style (invalid-name)
************* Module navix.environments.keydoor
navix/environments/keydoor.py:15:0: C0301: Line too long (106/100) (line-too-long)
navix/environments/keydoor.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/environments/keydoor.py:14:0: C0115: Missing class docstring (missing-class-docstring)
navix/environments/keydoor.py:15:4: R0914: Too many local variables (29/15) (too-many-locals)
navix/environments/keydoor.py:24:13: C0103: Variable name "k1" doesn't conform to snake_case naming style (invalid-name)
navix/environments/keydoor.py:24:17: C0103: Variable name "k2" doesn't conform to snake_case naming style (invalid-name)
navix/environments/keydoor.py:24:21: C0103: Variable name "k3" doesn't conform to snake_case naming style (invalid-name)
navix/environments/keydoor.py:24:25: C0103: Variable name "k4" doesn't conform to snake_case naming style (invalid-name)
navix/environments/keydoor.py:4:0: C0411: standard import "from typing import Union" should be placed before "import jax" (wrong-import-order)
************* Module navix.environments.room
navix/environments/room.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/environments/room.py:35:0: C0115: Missing class docstring (missing-class-docstring)
navix/environments/room.py:39:13: C0103: Variable name "k1" doesn't conform to snake_case naming style (invalid-name)
navix/environments/room.py:39:17: C0103: Variable name "k2" doesn't conform to snake_case naming style (invalid-name)
navix/environments/room.py:56:12: E1101: Instance of 'str' has no 'value' member (no-member)
navix/environments/room.py:57:12: E1101: Instance of 'str' has no 'value' member (no-member)
************* Module navix.grid
navix/grid.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/grid.py:34:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:38:38: W0621: Redefining name 'coordinates' from outer scope (line 34) (redefined-outer-name)
navix/grid.py:71:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:83:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:87:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:91:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:95:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:99:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:112:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:113:32: C0103: Argument name "n" doesn't conform to snake_case naming style (invalid-name)
navix/grid.py:123:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:123:37: C0103: Argument name "n" doesn't conform to snake_case naming style (invalid-name)
navix/grid.py:127:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:127:20: C0103: Argument name "a" doesn't conform to snake_case naming style (invalid-name)
navix/grid.py:127:30: C0103: Argument name "b" doesn't conform to snake_case naming style (invalid-name)
navix/grid.py:156:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:188:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:211:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/grid.py:211:0: W0102: Dangerous default value {} as argument (dangerous-default-value)
************* Module navix.observations
navix/observations.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/observations.py:36:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/observations.py:37:4: W0613: Unused argument 'state' (unused-argument)
navix/observations.py:42:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/observations.py:56:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/observations.py:79:0: C0116: Missing function or method docstring (missing-function-docstring)
navix/observations.py:102:0: C0116: Missing function or method docstring (missing-function-docstring)
************* Module navix.spaces
navix/spaces.py:1:0: C0114: Missing module docstring (missing-module-docstring)
navix/spaces.py:25:0: W0404: Reimport 'Shape' (imported line 23) (reimported)
navix/spaces.py:32:0: C0115: Missing class docstring (missing-class-docstring)
navix/spaces.py:37:15: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
navix/spaces.py:41:4: C0116: Missing function or method docstring (missing-function-docstring)
navix/spaces.py:45:0: C0115: Missing class docstring (missing-class-docstring)
navix/spaces.py:45:0: R0903: Too few public methods (1/2) (too-few-public-methods)
navix/spaces.py:57:0: C0115: Missing class docstring (missing-class-docstring)
navix/spaces.py:57:0: R0903: Too few public methods (1/2) (too-few-public-methods)
navix/spaces.py:17:0: W0611: Unused Callable imported from typing (unused-import)
************* Module test_environments
tests/test_environments.py:1:0: C0114: Missing module docstring (missing-module-docstring)
tests/test_environments.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_environments.py:7:4: C0103: Function name "f" doesn't conform to snake_case naming style (invalid-name)
tests/test_environments.py:36:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_environments.py:37:4: C0103: Function name "f" doesn't conform to snake_case naming style (invalid-name)
tests/test_environments.py:74:0: C0116: Missing function or method docstring (missing-function-docstring)
tests/test_environments.py:74:0: R1711: Useless return at end of function or method (useless-return)
tests/test_environments.py:78:4: W0612: Unused variable 'timestep' (unused-variable)
tests/test_environments.py:1:0: R0801: Similar lines in 2 files
==navix.environments.keydoor:[86:97]
==navix.environments.room:[57:70]
}
state = State(
key=key,
grid=grid,
cache=cache or RenderingCache.init(grid),
entities=entities,
)
return Timestep(
t=jnp.asarray(0, dtype=jnp.int32),
observation=self.observation(state), (duplicate-code)
Report
======
541 statements analysed.
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |10 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |16 |NC |NC |43.75 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |63 |NC |NC |50.79 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |29 |NC |NC |27.59 |6.90 |
+---------+-------+-----------+-----------+------------+---------+
1252 lines have been analyzed
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |785 |62.70 |NC |NC |
+----------+-------+------+---------+-----------+
|docstring |46 |3.67 |NC |NC |
+----------+-------+------+---------+-----------+
|comment |172 |13.74 |NC |NC |
+----------+-------+------+---------+-----------+
|empty |249 |19.89 |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 |94 |NC |NC |
+-----------+-------+---------+-----------+
|refactor |8 |NC |NC |
+-----------+-------+---------+-----------+
|warning |17 |NC |NC |
+-----------+-------+---------+-----------+
|error |22 |NC |NC |
+-----------+-------+---------+-----------+
Messages
--------
+---------------------------+------------+
|message id |occurrences |
+===========================+============+
|missing-function-docstring |52 |
+---------------------------+------------+
|no-member |22 |
+---------------------------+------------+
|invalid-name |14 |
+---------------------------+------------+
|missing-module-docstring |10 |
+---------------------------+------------+
|missing-class-docstring |9 |
+---------------------------+------------+
|line-too-long |5 |
+---------------------------+------------+
|comparison-with-callable |5 |
+---------------------------+------------+
|too-few-public-methods |4 |
+---------------------------+------------+
|dangerous-default-value |3 |
+---------------------------+------------+
|unused-import |2 |
+---------------------------+------------+
|unused-argument |2 |
+---------------------------+------------+
|redefined-builtin |2 |
+---------------------------+------------+
|consider-using-f-string |2 |
+---------------------------+------------+
|wrong-import-order |1 |
+---------------------------+------------+
|useless-return |1 |
+---------------------------+------------+
|unused-variable |1 |
+---------------------------+------------+
|ungrouped-imports |1 |
+---------------------------+------------+
|too-many-locals |1 |
+---------------------------+------------+
|reimported |1 |
+---------------------------+------------+
|redefined-outer-name |1 |
+---------------------------+------------+
|no-else-return |1 |
+---------------------------+------------+
|duplicate-code |1 |
+---------------------------+------------+
-----------------------------------
Your code has been rated at 5.77/10