Skip to content

Commit 8f80e8e

Browse files
pre-commit/pytype: Use Python 3.11, create missing output dir
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent e5288a1 commit 8f80e8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ repos:
126126
types: [python]
127127
verbose: true
128128
language: python
129-
language_version: python3.8
129+
language_version: python3.11
130130
require_serial: true
131131
additional_dependencies:
132132
- pytype

pytype_runner.py

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def setup_and_run_pytype_action(script_name: str):
166166
# Write the panda table to a markdown output file:
167167
summary_file = os.environ.get("GITHUB_STEP_SUMMARY", None)
168168
if summary_file:
169+
os.makedirs(os.path.dirname(summary_file), exist_ok=True)
169170
with open(summary_file, "w", encoding="utf-8") as fp:
170171
to_markdown(script_name, fp, retcode, results, filelink_baseurl)
171172
else:

0 commit comments

Comments
 (0)