Skip to content

Commit

Permalink
generate-jobs: handle skip section key
Browse files Browse the repository at this point in the history
Implemented skipping generation for the job types
mentioned in the `skip` key for a certain section in the config file.
  • Loading branch information
bart0sh committed Feb 19, 2025
1 parent dfef626 commit ac9c320
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/generate-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def generate_one(path: pathlib.Path, verify: bool) -> typing.List[str]:
f"Instead, modify {template_name} and run `make generate-jobs`.\n"
)
for section in config.sections():
# skip generation for the job types mentioned in
# the `skip` section key
if name in config[section].get("skip", "").split(","):
continue
tmp.write(
template.render(
config[section],
Expand Down

0 comments on commit ac9c320

Please sign in to comment.