Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Nov 23, 2023
1 parent bb0feea commit ffc61ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions conda_smithy/data/conda-forge.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2146,13 +2146,13 @@
"config_version": {
"anyOf": [
{
"type": "string"
"type": "integer"
},
{
"type": "null"
}
],
"default": "2",
"default": 2,
"description": "\n The version of the ``conda-forge.yml`` specification.\n This should not be manually modified.\n ",
"title": "Config Version"
},
Expand Down
2 changes: 1 addition & 1 deletion conda_smithy/data/conda-forge.v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ conda_build_tool: conda-build
conda_forge_output_validation: false
conda_install_tool: mamba
conda_solver: libmamba
config_version: '2'
config_version: 2
docker:
command: bash
executable: docker
Expand Down
6 changes: 3 additions & 3 deletions conda_smithy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from backports.strenum import StrEnum


from .validate_schema import (
from conda_smithy.validate_schema import (
CONFIG_VERSION,
CONDA_FORGE_YAML_DEFAULTS_FILE,
CONDA_FORGE_YAML_SCHEMA_FILE,
Expand Down Expand Up @@ -1158,9 +1158,9 @@ class ConfigModel(BaseModel):

model = ConfigModel()

with CONDA_FORGE_YAML_DEFAULTS_FILE.open(mode="w+") as f:
with CONDA_FORGE_YAML_SCHEMA_FILE.open(mode="w+") as f:
f.write(model.schema_json(indent=2))
f.write("\n")

with CONDA_FORGE_YAML_SCHEMA_FILE.open(mode="w+") as f:
with CONDA_FORGE_YAML_DEFAULTS_FILE.open(mode="w+") as f:
f.write(yaml.dump(model.dict(), indent=2))
1 change: 0 additions & 1 deletion conda_smithy/validate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ def validate_json_schema(config, schema_file: str = None):
else:
lints.append(error)
return lints, hints

0 comments on commit ffc61ee

Please sign in to comment.