Skip to content

Commit ae346b6

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

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
jobs:
2323
pre-commit:
2424
env:
25-
SKIP: pytest,pytype,no-commit-to-branch
25+
SKIP: pytest,no-commit-to-branch
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ repos:
122122
hooks:
123123
- id: pytype
124124
name: pytype (may take up to two minutes)
125-
entry: sh -c "pytype >/dev/tty"
125+
#entry: sh -c "pytype >/dev/tty"
126+
entry: pytype
126127
types: [python]
127128
verbose: true
128129
language: python
129-
language_version: python3.8
130+
language_version: python3.11
130131
require_serial: true
131132
additional_dependencies:
132133
- pytype

pytype_runner.py

Lines changed: 1 addition & 0 deletions
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:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# .github/workflows/main.yml is set up to test with 3.11, 3.12 and 3.13 in parallel.
1212
# Therefore, use three environments: One with 3.11, one with 3.12 and one with 3.13:
1313
#
14-
envlist = py311-covcp-check-mdreport, py312-cov-pytype, py313-cov-lint-pyright
14+
envlist = py311-covcp-check-pytype-mdreport, py312-cov, py313-cov-lint-pyright
1515
isolated_build = true
1616
skip_missing_interpreters = true
1717
requires =

0 commit comments

Comments
 (0)