Commit 776d4d77 authored by Jérome Perrin's avatar Jérome Perrin

software/ors-amarisoft: rename json templates for git pre-commit hook

When using pre-commit hook (the one installed by using `npm install`
from the root of the repository), all .json files are checked to be
valid json and formatted according to the ./format-json rules.

These templates were problematic for this script because they are not
really valid json, so name them .json.jinja2 instead of .jinja2.json so
that they are not selected by the pre-commit hook
parent ee938d06
...@@ -135,15 +135,15 @@ rf_mode_context_list = [ ...@@ -135,15 +135,15 @@ rf_mode_context_list = [
} }
] ]
with open('software.cfg.jinja2.json', 'r') as f: with open('software.cfg.json.jinja2', 'r') as f:
software_json_template = Template(f.read()) software_json_template = Template(f.read())
with open('instance-enb-input-schema.jinja2.json', 'r') as f: with open('instance-enb-input-schema.json.jinja2', 'r') as f:
instance_enb_json_template = Template(f.read()) instance_enb_json_template = Template(f.read())
with open('instance-gnb-input-schema.jinja2.json', 'r') as f: with open('instance-gnb-input-schema.json.jinja2', 'r') as f:
instance_gnb_json_template = Template(f.read()) instance_gnb_json_template = Template(f.read())
with open('instance-ue-lte-input-schema.jinja2.json', 'r') as f: with open('instance-ue-lte-input-schema.json.jinja2', 'r') as f:
instance_ue_lte_json_template = Template(f.read()) instance_ue_lte_json_template = Template(f.read())
with open('instance-ue-nr-input-schema.jinja2.json', 'r') as f: with open('instance-ue-nr-input-schema.json.jinja2', 'r') as f:
instance_ue_nr_json_template = Template(f.read()) instance_ue_nr_json_template = Template(f.read())
with open('software.jinja2.cfg', 'r') as f: with open('software.jinja2.cfg', 'r') as f:
software_template = Template(f.read()) software_template = Template(f.read())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment