Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayasimha Raghavan authored and Jayasimha Raghavan committed Sep 20, 2023
1 parent 4f0eb84 commit a4ef580
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sanitize-runbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ jobs:
uses: theahura/pytypes-action@main
with:
args: --generate-config pytype.toml

- name: Run Static Analysis on the Runbooks
run: |
7 changes: 3 additions & 4 deletions tools/runbook-sa/runbook_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
import argparse

from nbformat import read
from datetime import datetime
from argparse import ArgumentParser, REMAINDER
from argparse import ArgumentParser


def save_custom_cell_contents_to_file(runbook, output_file="./custom_cell_contents.py"):
Expand Down Expand Up @@ -90,7 +89,7 @@ def main(category: str = 'all', runbooks: list = []):
raise e
elif category == 'all':
command = [f"jupyter nbconvert --to script {runbook}"]
process = subprocess.run(command,
_ = subprocess.run(command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True)
Expand Down Expand Up @@ -137,4 +136,4 @@ def __call__(self, parser, namespace, values, option_string=None):
main(category='custom', runbooks=args.rc_runbooks)
else:
parser.print_help()
sys.exit(0)
sys.exit(0)

0 comments on commit a4ef580

Please sign in to comment.