Skip to content

Commit

Permalink
fix make_switcher bad skeleton merge
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Oct 17, 2023
1 parent 8450a7f commit a9bd825
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/pages/make_switcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
# Get a sorted list of tags
tags = get_sorted_tags_list()

# Make the sorted versions list from change_linter_to_ruff branches and tags
# Make the sorted versions list from main branches and tags
versions: List[str] = []
for version in ["master", "change_linter_to_ruff"] + tags:
for version in ["master", "main"] + tags:
if version in builds:
versions.append(version)
builds.remove(version)
Expand All @@ -67,7 +67,7 @@ def write_json(path: Path, repository: str, versions: str):
path.write_text(text, encoding="utf-8")


def change_linter_to_ruff(args=None):
def main(args=None):
parser = ArgumentParser(
description="Make a versions.txt file from gh-pages directories"
)
Expand Down Expand Up @@ -95,5 +95,5 @@ def change_linter_to_ruff(args=None):
write_json(args.output, args.repository, versions)


if __name__ == "__change_linter_to_ruff__":
change_linter_to_ruff()
if __name__ == "__main__":
main()

0 comments on commit a9bd825

Please sign in to comment.