From 59a8d779fe72b13d4a8054a3d1e447821a5944ea Mon Sep 17 00:00:00 2001 From: fabcor Date: Fri, 28 Jun 2024 13:35:33 +0200 Subject: [PATCH] Use lowest supported Python version for checks We should do formatting, linting, testing, and so on against the lowest Python version that we intend to support. We want to make sure we do not introduce unsupported Python syntax. Because Python is generally backwards-compatible this should be good enough to check against lowest version. --- .github/workflows/build_and_test.yml | 2 +- .pre-commit-config.yaml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2d4b4b1f0..bddcb5130 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,7 +12,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: ["3.10"] + python-version: ["3.8"] # Skip `pull_request` runs on local PRs for which `push` runs are already triggered # yamllint disable-line rule:line-length diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 767357ee1..a7741c765 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,7 @@ --- default_language_version: - python: python3.10 - + python: python3.8 # This should be set to the lowest Python version that we support. repos: