Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Make Github ignore the designs folder when determining repo language
flow/designs/src/* linguist-vendored
flow/scripts/variables.json linguist-generated=true
6 changes: 0 additions & 6 deletions .github/workflows/github-actions-yaml-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
fetch-depth: 1
sparse-checkout: |
flow/scripts/generate-variables-docs.py
flow/scripts/yaml_to_json.py
flow/scripts/variables.yaml
flow/scripts/variables.json
docs/user/FlowVariables.md
yamlfix.toml
.github/requirements/requirements_lock.txt
Expand All @@ -37,10 +35,6 @@ jobs:
- name: Check if FlowVariables.md is up to date
run: |
git diff --exit-code docs/user/FlowVariables.md
- name: Check variables.json is up to date
run: |
venv/bin/python3 flow/scripts/yaml_to_json.py
git diff --exit-code flow/scripts/variables.json
- name: Run yamlfix check
run: |
source venv/bin/activate
Expand Down
8 changes: 4 additions & 4 deletions flow/scripts/defaults.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env python3

import json
import os
import yaml

dir_path = os.path.dirname(os.path.realpath(__file__))

json_path = os.path.join(dir_path, "variables.json")
with open(json_path, "r") as file:
data = json.load(file)
yaml_path = os.path.join(dir_path, "variables.yaml")
with open(yaml_path, "r") as file:
data = yaml.safe_load(file)

for key, value in data.items():
if value.get("default", None) is None:
Expand Down
8 changes: 4 additions & 4 deletions flow/scripts/non_stage_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
#
# This script generates a list of variables known
# not to be in the current stage.
import json
import os
import sys
import yaml

dir_path = os.path.dirname(os.path.realpath(__file__))

json_path = os.path.join(dir_path, "variables.json")
with open(json_path, "r") as file:
data = json.load(file)
yaml_path = os.path.join(dir_path, "variables.yaml")
with open(yaml_path, "r") as file:
data = yaml.safe_load(file)

for key, value in data.items():
if "stages" not in value:
Expand Down
22 changes: 0 additions & 22 deletions flow/scripts/yaml_to_json.py

This file was deleted.