diff --git a/project/utils/auto_schema_test/nested.json b/project/utils/auto_schema_test/nested.json deleted file mode 100644 index c70959d4..00000000 --- a/project/utils/auto_schema_test/nested.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "title": "Auto-generated schema for nested.yaml", - "description": "Schema created by the `auto_schema.py` script.", - "properties": { - "defaults": { - "title": "Hydra defaults", - "description": "Hydra defaults for this config. See https://hydra.cc/docs/advanced/defaults_list/", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "string", - "pattern": "\\w*(.yaml|.yml)?$" - } - }, - "minProperties": 1, - "maxProperties": 1 - }, - { - "type": "string", - "pattern": "^\\w+(.yaml|.yml)?$" - }, - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "null" - } - }, - "minProperties": 1, - "maxProperties": 1 - } - ] - }, - "uniqueItems": true - }, - "_target_": { - "type": "string", - "title": "Target", - "description": "Target to instantiate.\nSee https://hydra.cc/docs/advanced/instantiate_objects/overview/" - }, - "_convert_": { - "type": "string", - "enum": [ - "none", - "partial", - "object", - "all" - ], - "title": "Convert", - "description": "See https://hydra.cc/docs/advanced/instantiate_objects/overview/#parameter-conversion-strategies" - }, - "_partial_": { - "type": "boolean", - "title": "Partial", - "description": "Whether this config calls the target function when instantiated, or creates a `functools.partial` that will call the target.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview" - }, - "_recursive_": { - "type": "boolean", - "title": "Recursive", - "description": "Whether instantiating this config should recursively instantiate children configs.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview/#recursive-instantiation" - }, - "a": { - "type": "object", - "additionalProperties": true, - "properties": { - "b": { - "type": "object", - "additionalProperties": true, - "properties": { - "foo": { - "properties": { - "_target_": { - "default": "project.utils.auto_schema_test.Bar", - "title": "Target", - "type": "string", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "const": "project.utils.auto_schema_test.Bar" - }, - "_recursive_": { - "default": false, - "title": " Recursive ", - "type": "boolean", - "description": "The _recursive_ parameter of the Bar." - }, - "_convert_": { - "default": "all", - "title": " Convert ", - "type": "string", - "description": "The _convert_ parameter of the Bar." - }, - "bar": { - "title": "Bar", - "type": "string", - "description": "Description of the `bar` argument." - }, - "baz": { - "title": "Baz", - "type": "integer", - "description": "description of the `baz` argument from the cls docstring instead of the init docstring." - } - }, - "required": [ - "bar", - "baz" - ], - "title": "Bar", - "type": "object", - "description": "Based on the signature of .\n", - "additionalProperties": false - } - } - } - } - } - }, - "dependentRequired": { - "_convert_": [ - "_target_" - ], - "_partial_": [ - "_target_" - ], - "_args_": [ - "_target_" - ], - "_recursive_": [ - "_target_" - ] - }, - "additionalProperties": true -} diff --git a/project/utils/auto_schema_test/nested.yaml b/project/utils/auto_schema_test/nested.yaml deleted file mode 100644 index 7a20e9df..00000000 --- a/project/utils/auto_schema_test/nested.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# yaml-language-server: $schema=nested.json -a: - b: - foo: - _target_: project.utils.auto_schema_test.Bar - bar: "boo" - baz: 123 diff --git a/project/utils/auto_schema_test/partial.json b/project/utils/auto_schema_test/partial.json deleted file mode 100644 index a1f77459..00000000 --- a/project/utils/auto_schema_test/partial.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "title": "Foo", - "description": "Based on the signature of .\n", - "properties": { - "defaults": { - "title": "Hydra defaults", - "description": "Hydra defaults for this config. See https://hydra.cc/docs/advanced/defaults_list/", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "string", - "pattern": "\\w*(.yaml|.yml)?$" - } - }, - "minProperties": 1, - "maxProperties": 1 - }, - { - "type": "string", - "pattern": "^\\w+(.yaml|.yml)?$" - }, - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "null" - } - }, - "minProperties": 1, - "maxProperties": 1 - } - ] - }, - "uniqueItems": true - }, - "_target_": { - "type": "string", - "title": "Target", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "default": "project.utils.auto_schema_test.Foo", - "const": "project.utils.auto_schema_test.Foo" - }, - "_convert_": { - "type": "string", - "enum": [ - "none", - "partial", - "object", - "all" - ], - "title": " Convert ", - "description": "The _convert_ parameter of the Foo.", - "default": "all" - }, - "_partial_": { - "type": "boolean", - "title": "Partial", - "description": "Whether this config calls the target function when instantiated, or creates a `functools.partial` that will call the target.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview" - }, - "_recursive_": { - "type": "boolean", - "title": " Recursive ", - "description": "The _recursive_ parameter of the Foo.", - "default": false - }, - "bar": { - "title": "Bar", - "type": "string", - "description": "Description of the `bar` argument." - } - }, - "dependentRequired": { - "_convert_": [ - "_target_" - ], - "_partial_": [ - "_target_" - ], - "_args_": [ - "_target_" - ], - "_recursive_": [ - "_target_" - ] - }, - "additionalProperties": false, - "required": [], - "type": "object" -} diff --git a/project/utils/auto_schema_test/partial.yaml b/project/utils/auto_schema_test/partial.yaml deleted file mode 100644 index 8970d618..00000000 --- a/project/utils/auto_schema_test/partial.yaml +++ /dev/null @@ -1,3 +0,0 @@ -# yaml-language-server: $schema=partial.json -_target_: project.utils.auto_schema_test.Foo -_partial_: true diff --git a/project/utils/auto_schema_test/with_defaults.json b/project/utils/auto_schema_test/with_defaults.json deleted file mode 100644 index a854fa22..00000000 --- a/project/utils/auto_schema_test/with_defaults.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "title": "Auto-generated schema for with_defaults.yaml", - "description": "Schema created by the `auto_schema.py` script.", - "properties": { - "defaults": { - "title": "Hydra defaults", - "description": "Hydra defaults for this config. See https://hydra.cc/docs/advanced/defaults_list/", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "string", - "pattern": "\\w*(.yaml|.yml)?$" - } - }, - "minProperties": 1, - "maxProperties": 1 - }, - { - "type": "string", - "pattern": "^\\w+(.yaml|.yml)?$" - }, - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "null" - } - }, - "minProperties": 1, - "maxProperties": 1 - } - ] - }, - "uniqueItems": true - }, - "_target_": { - "type": "string", - "title": "Target", - "description": "Target to instantiate.\nSee https://hydra.cc/docs/advanced/instantiate_objects/overview/", - "default": "project.utils.auto_schema_test.Foo", - "const": "project.utils.auto_schema_test.Foo" - }, - "_convert_": { - "type": "string", - "enum": [ - "none", - "partial", - "object", - "all" - ], - "title": "Convert", - "description": "See https://hydra.cc/docs/advanced/instantiate_objects/overview/#parameter-conversion-strategies", - "default": "all" - }, - "_partial_": { - "type": "boolean", - "title": "Partial", - "description": "Whether this config calls the target function when instantiated, or creates a `functools.partial` that will call the target.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview" - }, - "_recursive_": { - "type": "boolean", - "title": "Recursive", - "description": "Whether instantiating this config should recursively instantiate children configs.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview/#recursive-instantiation", - "default": false - }, - "bar": { - "title": "Bar", - "type": "string", - "description": "Description of the `bar` argument." - }, - "hydra": { - "type": "object", - "additionalProperties": true, - "properties": { - "launcher": { - "properties": { - "_target_": { - "default": "hydra._internal.core_plugins.basic_launcher.BasicLauncher", - "title": "Target", - "type": "string", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "const": "hydra._internal.core_plugins.basic_launcher.BasicLauncher" - }, - "_recursive_": { - "default": false, - "title": " Recursive ", - "type": "boolean", - "description": "The _recursive_ parameter of the BasicLauncher." - }, - "_convert_": { - "default": "all", - "title": " Convert ", - "type": "string", - "description": "The _convert_ parameter of the BasicLauncher." - } - }, - "title": "BasicLauncher", - "type": "object", - "description": "Based on the signature of .\n", - "additionalProperties": false - }, - "sweeper": { - "properties": { - "_target_": { - "default": "hydra._internal.core_plugins.basic_sweeper.BasicSweeper", - "title": "Target", - "type": "string", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "const": "hydra._internal.core_plugins.basic_sweeper.BasicSweeper" - }, - "_recursive_": { - "default": false, - "title": " Recursive ", - "type": "boolean", - "description": "The _recursive_ parameter of the BasicSweeper." - }, - "_convert_": { - "default": "all", - "title": " Convert ", - "type": "string", - "description": "The _convert_ parameter of the BasicSweeper." - }, - "max_batch_size": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Max Batch Size", - "description": "The max_batch_size parameter of the BasicSweeper." - }, - "params": { - "anyOf": [ - { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Params", - "description": "The params parameter of the BasicSweeper." - } - }, - "required": [ - "max_batch_size" - ], - "title": "BasicSweeper", - "type": "object", - "description": "Based on the signature of .\n", - "additionalProperties": false - } - } - } - }, - "dependentRequired": { - "_convert_": [ - "_target_" - ], - "_partial_": [ - "_target_" - ], - "_args_": [ - "_target_" - ], - "_recursive_": [ - "_target_" - ] - }, - "required": [ - "bar" - ], - "type": "object", - "additionalProperties": true -} diff --git a/project/utils/auto_schema_test/with_defaults.yaml b/project/utils/auto_schema_test/with_defaults.yaml deleted file mode 100644 index 6c6ede0e..00000000 --- a/project/utils/auto_schema_test/with_defaults.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# yaml-language-server: $schema=with_defaults.json -defaults: - - with_target -bar: "bob" diff --git a/project/utils/auto_schema_test/with_package_global.json b/project/utils/auto_schema_test/with_package_global.json deleted file mode 100644 index b2a839d4..00000000 --- a/project/utils/auto_schema_test/with_package_global.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "title": "Foo", - "description": "Based on the signature of .\n", - "properties": { - "defaults": { - "title": "Hydra defaults", - "description": "Hydra defaults for this config. See https://hydra.cc/docs/advanced/defaults_list/", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "string", - "pattern": "\\w*(.yaml|.yml)?$" - } - }, - "minProperties": 1, - "maxProperties": 1 - }, - { - "type": "string", - "pattern": "^\\w+(.yaml|.yml)?$" - }, - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "null" - } - }, - "minProperties": 1, - "maxProperties": 1 - } - ] - }, - "uniqueItems": true - }, - "_target_": { - "type": "string", - "title": "Target", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "default": "project.utils.auto_schema_test.Foo", - "const": "project.utils.auto_schema_test.Foo" - }, - "_convert_": { - "type": "string", - "enum": [ - "none", - "partial", - "object", - "all" - ], - "title": " Convert ", - "description": "The _convert_ parameter of the Foo.", - "default": "all" - }, - "_partial_": { - "type": "boolean", - "title": "Partial", - "description": "Whether this config calls the target function when instantiated, or creates a `functools.partial` that will call the target.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview" - }, - "_recursive_": { - "type": "boolean", - "title": " Recursive ", - "description": "The _recursive_ parameter of the Foo.", - "default": false - }, - "bar": { - "title": "Bar", - "type": "string", - "description": "Description of the `bar` argument." - } - }, - "dependentRequired": { - "_convert_": [ - "_target_" - ], - "_partial_": [ - "_target_" - ], - "_args_": [ - "_target_" - ], - "_recursive_": [ - "_target_" - ] - }, - "additionalProperties": false, - "required": [ - "bar" - ], - "type": "object" -} diff --git a/project/utils/auto_schema_test/with_package_global.yaml b/project/utils/auto_schema_test/with_package_global.yaml deleted file mode 100644 index d181dc17..00000000 --- a/project/utils/auto_schema_test/with_package_global.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# @package: _global_ -# yaml-language-server: $schema=with_package_global.json -_target_: project.utils.auto_schema_test.Foo -bar: "bob" diff --git a/project/utils/auto_schema_test/with_target.json b/project/utils/auto_schema_test/with_target.json deleted file mode 100644 index b2a839d4..00000000 --- a/project/utils/auto_schema_test/with_target.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "title": "Foo", - "description": "Based on the signature of .\n", - "properties": { - "defaults": { - "title": "Hydra defaults", - "description": "Hydra defaults for this config. See https://hydra.cc/docs/advanced/defaults_list/", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "string", - "pattern": "\\w*(.yaml|.yml)?$" - } - }, - "minProperties": 1, - "maxProperties": 1 - }, - { - "type": "string", - "pattern": "^\\w+(.yaml|.yml)?$" - }, - { - "type": "object", - "propertyNames": { - "pattern": "^(override\\s*)?(/?\\w*)+$" - }, - "patternProperties": { - "^(override\\s*)?(/?\\w*)*$": { - "type": "null" - } - }, - "minProperties": 1, - "maxProperties": 1 - } - ] - }, - "uniqueItems": true - }, - "_target_": { - "type": "string", - "title": "Target", - "description": "Target to instantiate, in this case: ``\nSee the Hydra docs for '_target_': https://hydra.cc/docs/advanced/instantiate_objects/overview/\n", - "default": "project.utils.auto_schema_test.Foo", - "const": "project.utils.auto_schema_test.Foo" - }, - "_convert_": { - "type": "string", - "enum": [ - "none", - "partial", - "object", - "all" - ], - "title": " Convert ", - "description": "The _convert_ parameter of the Foo.", - "default": "all" - }, - "_partial_": { - "type": "boolean", - "title": "Partial", - "description": "Whether this config calls the target function when instantiated, or creates a `functools.partial` that will call the target.\nSee: https://hydra.cc/docs/advanced/instantiate_objects/overview" - }, - "_recursive_": { - "type": "boolean", - "title": " Recursive ", - "description": "The _recursive_ parameter of the Foo.", - "default": false - }, - "bar": { - "title": "Bar", - "type": "string", - "description": "Description of the `bar` argument." - } - }, - "dependentRequired": { - "_convert_": [ - "_target_" - ], - "_partial_": [ - "_target_" - ], - "_args_": [ - "_target_" - ], - "_recursive_": [ - "_target_" - ] - }, - "additionalProperties": false, - "required": [ - "bar" - ], - "type": "object" -} diff --git a/project/utils/auto_schema_test/with_target.yaml b/project/utils/auto_schema_test/with_target.yaml deleted file mode 100644 index 35226f42..00000000 --- a/project/utils/auto_schema_test/with_target.yaml +++ /dev/null @@ -1,3 +0,0 @@ -# yaml-language-server: $schema=with_target.json -_target_: project.utils.auto_schema_test.Foo -bar: "bob"