Skip to content

Commit

Permalink
pre-commit/pytype: Use Python 3.11, create missing output dir
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed Nov 16, 2024
1 parent e5288a1 commit 8f80e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ repos:
types: [python]
verbose: true
language: python
language_version: python3.8
language_version: python3.11
require_serial: true
additional_dependencies:
- pytype
Expand Down
1 change: 1 addition & 0 deletions pytype_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def setup_and_run_pytype_action(script_name: str):
# Write the panda table to a markdown output file:
summary_file = os.environ.get("GITHUB_STEP_SUMMARY", None)
if summary_file:
os.makedirs(os.path.dirname(summary_file), exist_ok=True)
with open(summary_file, "w", encoding="utf-8") as fp:
to_markdown(script_name, fp, retcode, results, filelink_baseurl)
else:
Expand Down

0 comments on commit 8f80e8e

Please sign in to comment.