Skip to content

Commit

Permalink
manage.py: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
duncandewhurst committed Nov 2, 2023
1 parent 34f460d commit fd1885c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,10 @@ def lint(filename, additional_properties):

# Disallow additional properties
set_additional_properties(schema, additional_properties)

format_checker = FormatChecker()

# Load sustainability modules mapping
with open(filename) as f:
elements = yaml.safe_load(f)

Expand Down Expand Up @@ -810,11 +812,11 @@ def lint(filename, additional_properties):
def update_sustainability_docs():
"""Update docs/cost/ids/sustainability.md"""

# Load sustainability modules documentation
# Load sustainability mapping documentation
with (basedir / 'docs' / 'cost' / 'ids' / 'sustainability.md').open() as f:
docs = f.readlines()

# Preserve content that appears before the generated reference content for each module
# Preserve content that appears before the content generated by this function
module_index = docs.index("## Economic and fiscal\n")
docs = docs[:module_index]

Expand Down

0 comments on commit fd1885c

Please sign in to comment.