************* Module adaro_rl adaro_rl/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/__init__.py:13:8: C0415: Import outside toplevel (.pipelines) (import-outside-toplevel) ************* Module adaro_rl.viz.robustness_matrix adaro_rl/viz/robustness_matrix.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/viz/robustness_matrix.py:9:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) ************* Module adaro_rl.viz adaro_rl/viz/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.zoo.main adaro_rl/zoo/main.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/main.py:28:4: C0415: Import outside toplevel (.configs) (import-outside-toplevel) ************* Module adaro_rl.zoo.agent adaro_rl/zoo/agent.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/agent.py:80:0: W0223: Method 'forward' is abstract in class 'torch.nn.modules.module' but is not overridden in child class 'Agent' (abstract-method) adaro_rl/zoo/agent.py:107:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/zoo/agent.py:174:12: W0212: Access to a protected member _setup_lr_schedule of a client class (protected-access) adaro_rl/zoo/agent.py:201:4: W0221: Number of parameters was 4 in 'Module.to' and is now 2 in overriding 'Agent.to' method (arguments-differ) adaro_rl/zoo/agent.py:216:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) adaro_rl/zoo/agent.py:245:12: W0212: Access to a protected member _setup_learn of a client class (protected-access) adaro_rl/zoo/agent.py:257:12: W0212: Access to a protected member _setup_lr_schedule of a client class (protected-access) adaro_rl/zoo/agent.py:266:8: W0212: Access to a protected member _setup_lr_schedule of a client class (protected-access) adaro_rl/zoo/agent.py:218:8: W0613: Unused argument 'eval_env' (unused-argument) adaro_rl/zoo/agent.py:220:8: W0613: Unused argument 'eval_freq' (unused-argument) adaro_rl/zoo/agent.py:221:8: W0613: Unused argument 'n_eval_episodes' (unused-argument) adaro_rl/zoo/agent.py:223:8: W0613: Unused argument 'verbose' (unused-argument) adaro_rl/zoo/agent.py:381:21: W0212: Access to a protected member _predict of a client class (protected-access) adaro_rl/zoo/agent.py:402:8: R1720: Unnecessary "elif" after "raise", remove the leading "el" from "elif" (no-else-raise) adaro_rl/zoo/agent.py:414:13: R1701: Consider merging these isinstance calls to isinstance(self.model, (A2C, PPO)) (consider-merging-isinstance) adaro_rl/zoo/agent.py:418:12: R1701: Consider merging these isinstance calls to isinstance(self.model, (DDPG, SAC, TD3)) (consider-merging-isinstance) adaro_rl/zoo/agent.py:451:13: R1701: Consider merging these isinstance calls to isinstance(self.model, (A2C, PPO)) (consider-merging-isinstance) adaro_rl/zoo/agent.py:483:13: R1701: Consider merging these isinstance calls to isinstance(self.model, (A2C, PPO)) (consider-merging-isinstance) adaro_rl/zoo/agent.py:512:12: R1701: Consider merging these isinstance calls to isinstance(self.model, (DDPG, SAC, TD3)) (consider-merging-isinstance) adaro_rl/zoo/agent.py:549:4: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) adaro_rl/zoo/agent.py:581:4: W0102: Dangerous default value [] as argument (dangerous-default-value) adaro_rl/zoo/agent.py:715:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) adaro_rl/zoo/agent.py:797:12: R1714: Consider merging these comparisons with 'in' by using 'observation_space.shape in (observation.shape, observation.shape[1:])'. Use a set instead if elements are hashable. (consider-using-in) adaro_rl/zoo/agent.py:803:16: R1714: Consider merging these comparisons with 'in' by using 'observation_space.shape in (transpose_obs.shape, transpose_obs.shape[1:])'. Use a set instead if elements are hashable. (consider-using-in) ************* Module adaro_rl.zoo.environment adaro_rl/zoo/environment.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/environment.py:12:0: R0917: Too many positional arguments (15/5) (too-many-positional-arguments) adaro_rl/zoo/environment.py:86:4: W0621: Redefining name 'make_env' from outer scope (line 12) (redefined-outer-name) adaro_rl/zoo/environment.py:135:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) ************* Module adaro_rl.zoo.eval adaro_rl/zoo/eval.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/eval.py:15:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/zoo/eval.py:60:4: C0415: Import outside toplevel (stable_baselines3.common.monitor.Monitor) (import-outside-toplevel) adaro_rl/zoo/eval.py:94:4: R1702: Too many nested blocks (6/5) (too-many-nested-blocks) ************* Module adaro_rl.zoo.registry adaro_rl/zoo/registry.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.zoo adaro_rl/zoo/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/__init__.py:2:0: W0622: Redefining built-in 'eval' (redefined-builtin) adaro_rl/zoo/__init__.py:6:0: C0413: Import "from .main import download_model" should be placed at the top of the module (wrong-import-position) ************* Module adaro_rl.zoo.HalfCheetah-v5.agent adaro_rl/zoo/HalfCheetah-v5/agent.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/HalfCheetah-v5/agent.py:3:0: W0611: Unused make_agent imported from agent (unused-import) ************* Module adaro_rl.zoo.HalfCheetah-v5.environment adaro_rl/zoo/HalfCheetah-v5/environment.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/HalfCheetah-v5/environment.py:9:0: C0115: Missing class docstring (missing-class-docstring) adaro_rl/zoo/HalfCheetah-v5/environment.py:11:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) adaro_rl/zoo/HalfCheetah-v5/environment.py:6:0: W0611: Unused make_env imported from environment (unused-import) ************* Module adaro_rl.zoo.HalfCheetah-v5 adaro_rl/zoo/HalfCheetah-v5/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.zoo.Enduro-v5.agent adaro_rl/zoo/Enduro-v5/agent.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/Enduro-v5/agent.py:35:24: R1735: Consider using '{"vf": [512, 256], "pi": [256, 128]}' instead of a call to 'dict'. (use-dict-literal) adaro_rl/zoo/Enduro-v5/agent.py:63:24: R1735: Consider using '{"vf": [512, 256], "pi": [256, 128]}' instead of a call to 'dict'. (use-dict-literal) adaro_rl/zoo/Enduro-v5/agent.py:91:24: R1735: Consider using '{"vf": [512, 256], "pi": [256, 128]}' instead of a call to 'dict'. (use-dict-literal) adaro_rl/zoo/Enduro-v5/agent.py:4:0: W0611: Unused make_agent imported from agent (unused-import) ************* Module adaro_rl.zoo.Enduro-v5.environment adaro_rl/zoo/Enduro-v5/environment.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/Enduro-v5/environment.py:14:0: C0115: Missing class docstring (missing-class-docstring) adaro_rl/zoo/Enduro-v5/environment.py:16:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) adaro_rl/zoo/Enduro-v5/environment.py:6:0: W0611: Unused make_env imported from environment (unused-import) ************* Module adaro_rl.zoo.Enduro-v5 adaro_rl/zoo/Enduro-v5/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.zoo.Template.agent adaro_rl/zoo/Template/agent.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.zoo.Template.environment adaro_rl/zoo/Template/environment.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/zoo/Template/environment.py:9:0: C0115: Missing class docstring (missing-class-docstring) adaro_rl/zoo/Template/environment.py:11:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) adaro_rl/zoo/Template/environment.py:13:8: W0612: Unused variable 'observation_perturbation_space' (unused-variable) adaro_rl/zoo/Template/environment.py:18:8: W0612: Unused variable 'proportional_obs_perturbation_mask' (unused-variable) ************* Module adaro_rl.zoo.Template adaro_rl/zoo/Template/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.pipelines.main adaro_rl/pipelines/main.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/main.py:271:8: W0707: Consider explicitly re-raising using 'except ImportError as exc' and 'raise ImportError(f'Could not import the specified zoo module: {args.zoo}. Please ensure it isinstalled and available.') from exc' (raise-missing-from) adaro_rl/pipelines/main.py:21:0: R0915: Too many statements (79/50) (too-many-statements) ************* Module adaro_rl.pipelines.adversarial_train adaro_rl/pipelines/adversarial_train.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/adversarial_train.py:10:0: R0917: Too many positional arguments (15/5) (too-many-positional-arguments) adaro_rl/pipelines/adversarial_train.py:111:4: C0115: Missing class docstring (missing-class-docstring) adaro_rl/pipelines/adversarial_train.py:111:4: W0223: Method 'render' is abstract in class 'Env' but is not overridden in child class 'Placeholder' (abstract-method) adaro_rl/pipelines/adversarial_train.py:111:4: W0223: Method 'step' is abstract in class 'Env' but is not overridden in child class 'Placeholder' (abstract-method) adaro_rl/pipelines/adversarial_train.py:181:8: R1704: Redefining argument with the local name 'attack_name' (redefined-argument-from-local) adaro_rl/pipelines/adversarial_train.py:181:21: R1704: Redefining argument with the local name 'adversary_checkpoint' (redefined-argument-from-local) adaro_rl/pipelines/adversarial_train.py:187:12: C0115: Missing class docstring (missing-class-docstring) adaro_rl/pipelines/adversarial_train.py:187:12: W0223: Method 'render' is abstract in class 'Env' but is not overridden in child class 'AdversaryPlaceholder' (abstract-method) adaro_rl/pipelines/adversarial_train.py:187:12: W0223: Method 'step' is abstract in class 'Env' but is not overridden in child class 'AdversaryPlaceholder' (abstract-method) adaro_rl/pipelines/adversarial_train.py:190:40: W0640: Cell variable adv_action_space defined in loop (cell-var-from-loop) adaro_rl/pipelines/adversarial_train.py:193:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment) adaro_rl/pipelines/adversarial_train.py:203:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment) ************* Module adaro_rl.pipelines.utils adaro_rl/pipelines/utils.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/utils.py:17:0: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/pipelines/utils.py:50:12: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment) ************* Module adaro_rl.pipelines.test adaro_rl/pipelines/test.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/test.py:6:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) adaro_rl/pipelines/test.py:110:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/test.py:111:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/test.py:112:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/test.py:117:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/test.py:118:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/test.py:119:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) ************* Module adaro_rl.pipelines.train adaro_rl/pipelines/train.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/train.py:4:0: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) ************* Module adaro_rl.pipelines.online_attack adaro_rl/pipelines/online_attack.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/pipelines/online_attack.py:12:0: R0917: Too many positional arguments (14/5) (too-many-positional-arguments) adaro_rl/pipelines/online_attack.py:84:31: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:86:30: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:109:4: C0115: Missing class docstring (missing-class-docstring) adaro_rl/pipelines/online_attack.py:109:4: W0223: Method 'render' is abstract in class 'Env' but is not overridden in child class 'Placeholder' (abstract-method) adaro_rl/pipelines/online_attack.py:109:4: W0223: Method 'step' is abstract in class 'Env' but is not overridden in child class 'Placeholder' (abstract-method) adaro_rl/pipelines/online_attack.py:153:8: R1704: Redefining argument with the local name 'attack_name' (redefined-argument-from-local) adaro_rl/pipelines/online_attack.py:153:21: R1704: Redefining argument with the local name 'adversary_checkpoint' (redefined-argument-from-local) adaro_rl/pipelines/online_attack.py:159:12: C0115: Missing class docstring (missing-class-docstring) adaro_rl/pipelines/online_attack.py:159:12: W0223: Method 'render' is abstract in class 'Env' but is not overridden in child class 'AdversaryPlaceholder' (abstract-method) adaro_rl/pipelines/online_attack.py:159:12: W0223: Method 'step' is abstract in class 'Env' but is not overridden in child class 'AdversaryPlaceholder' (abstract-method) adaro_rl/pipelines/online_attack.py:162:40: W0640: Cell variable adv_action_space defined in loop (cell-var-from-loop) adaro_rl/pipelines/online_attack.py:165:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment) adaro_rl/pipelines/online_attack.py:175:16: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment) adaro_rl/pipelines/online_attack.py:212:23: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:254:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:255:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:256:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:260:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:261:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:262:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:293:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) adaro_rl/pipelines/online_attack.py:12:0: R0915: Too many statements (76/50) (too-many-statements) ************* Module adaro_rl.pipelines adaro_rl/pipelines/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.attacks.base_attack adaro_rl/attacks/base_attack.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/attacks/base_attack.py:5:0: R0902: Too many instance attributes (19/15) (too-many-instance-attributes) adaro_rl/attacks/base_attack.py:41:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/attacks/base_attack.py:320:8: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) ************* Module adaro_rl.attacks.fgm adaro_rl/attacks/fgm.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/attacks/fgm.py:44:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/attacks/fgm.py:134:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgm.py:251:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgm.py:365:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgm.py:480:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgm.py:600:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) ************* Module adaro_rl.attacks.random adaro_rl/attacks/random.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/attacks/random.py:32:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/attacks/random.py:102:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/attacks/random.py:174:4: R0917: Too many positional arguments (8/5) (too-many-positional-arguments) adaro_rl/attacks/random.py:219:0: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) ************* Module adaro_rl.attacks.fgsm adaro_rl/attacks/fgsm.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/attacks/fgsm.py:46:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgsm.py:101:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgsm.py:156:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgsm.py:212:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) adaro_rl/attacks/fgsm.py:268:4: R0917: Too many positional arguments (9/5) (too-many-positional-arguments) ************* Module adaro_rl.attacks.registry adaro_rl/attacks/registry.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.attacks adaro_rl/attacks/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.wrappers.obs_attack_adversary_env adaro_rl/wrappers/obs_attack_adversary_env.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/wrappers/obs_attack_adversary_env.py:41:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments) adaro_rl/wrappers/obs_attack_adversary_env.py:45:8: W0613: Unused argument 'agent_predict_fct' (unused-argument) adaro_rl/wrappers/obs_attack_adversary_env.py:88:4: W0237: Parameter 'actions' has been renamed to 'adversary_actions' in overriding 'ObsAttackAdversaryEnv.step_async' method (arguments-renamed) adaro_rl/wrappers/obs_attack_adversary_env.py:137:4: W0221: Number of parameters was 2 in 'VecEnvWrapper.render' and is now 2 in overriding 'ObsAttackAdversaryEnv.render' method (arguments-differ) ************* Module adaro_rl.wrappers.obs_attack_agent_env adaro_rl/wrappers/obs_attack_agent_env.py:1:0: C0114: Missing module docstring (missing-module-docstring) adaro_rl/wrappers/obs_attack_agent_env.py:50:20: W0613: Unused argument 'seed' (unused-argument) adaro_rl/wrappers/obs_attack_agent_env.py:105:4: W0221: Number of parameters was 2 in 'VecEnvWrapper.render' and is now 1 in overriding 'ObsAttackAgentEnv.render' method (arguments-differ) ************* Module adaro_rl.wrappers adaro_rl/wrappers/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) ************* Module adaro_rl.wrappers.__init__ adaro_rl/wrappers/__init__.py:1:0: R0401: Cyclic import (adaro_rl.zoo -> adaro_rl.zoo.main) (cyclic-import) ----------------------------------- Your code has been rated at 8.81/10