Skip to content

Commit

Permalink
Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Oct 6, 2023
1 parent 4b65f87 commit 331eaca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .tools/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ def get_section_info(file):

with open(PROJECT_ROOT / file) as fh:
section = fh.read()

section = (
begin + rf"\n````{ext}\n" + section + r"````\n\n" + end
)

section = begin + rf"\n````{ext}\n" + section + r"````\n\n" + end
return begin, end, section


def main():
with open(PROJECT_ROOT / "README.md") as fh:
readme = fh.read()
Expand All @@ -38,7 +37,9 @@ def main():
readme = rx.sub(section, readme)

# default_config.toml
begin, end, section = get_section_info(".github/workflows/milestone-merged-prs.yaml")
begin, end, section = get_section_info(
".github/workflows/milestone-merged-prs.yaml"
)
rx = re.compile(begin + ".*?" + end, re.DOTALL)
readme = rx.sub(section, readme)

Expand Down

0 comments on commit 331eaca

Please sign in to comment.