Skip to content

Instantly share code, notes, and snippets.

View ishanSrt's full-sized avatar
😎

Ishan Srivastava ishanSrt

😎
  • Google Summer of Code 2018 @coala
  • Tempe, Arizona
View GitHub Profile
@ishanSrt
ishanSrt / bear_annotations.md
Last active June 9, 2018 13:00
Description of the changes to the bears to add type annotations to check agains settings which can attain infinite set of values (Type 2), certain discrete values (Type 3) and which need config files (Type 4)

(all the names of the classes are debatable. This is just to form a general idea of the changes being made to the bears)

Each bear will have an extra class

class bear_annotations():
  class acceptable_values_type_3_setting():
    setting_name = [list of acceptable values]
  class config_file_names_type_4_setting():
    setting_name = [list of acceptable config files]
  class constraints_type_2_setting():
 class setting_name():
.
..
.DS_Store
.cache
.coafile
.codecov.yml
.coverage.Ishans-MBP.6215.360012
.coverage.Ishans-MBP.6224.245183
.coverage.Ishans-MBP.6238.618467
.coverage.Ishans-MBP.6262.042036
[Default]
files = *.py, gym/**/*.py, gym/tests/**/*.py
max_line_length = 80
use_spaces = False
[Python]
bears = SpaceConsistencyBear, QuotesBear
language = Python
preferred_quotation = "
default_actions = **: ApplyPatchAction
This file has been truncated, but you can view the full file.
[WARNING][03:49:08] Implicit 'Default' section inheritance is deprecated. It will be removed soon. To silence this warning remove settings in the 'Default' section from your coafile. You can use dots to specify inheritance: the section 'all.python' will inherit all settings from 'all'.
Executing section Python...
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from 'SpaceConsistencyBear'.
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from 'SpaceConsistencyBear'.
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from 'SpaceConsistencyBear'.
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from 'SpaceConsistencyBear'.
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from 'SpaceConsistencyBear'.
[INFO][03:49:08] Applied 'ApplyPatchAction' on 'gym/envs/mujoco/inverted_double_pendulum.py' from '