From 696f67bb6b84cbe59d2e9d1f7a687f2b40aea3a8 Mon Sep 17 00:00:00 2001
From: EeyoreLee
Date: Fri, 10 Jan 2025 10:42:04 +0800
Subject: [PATCH] ci: PR check on python 3.9-3.13 (#203)
* ci: PR check on python 3.9-3.13
* README: modify python version about EOL
---
.github/workflows/pr-check.yml | 6 +++---
README.md | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml
index c8a2c36..4ab3121 100644
--- a/.github/workflows/pr-check.yml
+++ b/.github/workflows/pr-check.yml
@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
- python: ['3.8', '3.9', '3.10', '3.11']
+ python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout
@@ -30,10 +30,10 @@ jobs:
path: ${{ env.special-working-directory-relative }}
# Install bundled libs using 3.8 even though you test it on other versions.
- - name: Use Python 3.8
+ - name: Use Python 3.10
uses: actions/setup-python@v5
with:
- python-version: '3.8'
+ python-version: '3.10'
- name: Update pip, install wheel and nox
run: python -m pip install -U pip wheel nox
diff --git a/README.md b/README.md
index ef5d07e..6bd7e78 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
A formatter extension with support for python files and notebook cell. Feel free to open an issue to tell me what feature else do you need since it's a preview version.
Note:
-* This extension is supported for all [actively supported versions](https://devguide.python.org/versions/#supported-versions) of the python language (i.e., python >= 3.8(EOL: 2024-10)).
+* This extension is supported for all [actively supported versions](https://devguide.python.org/versions/#supported-versions) of the python language (i.e., python >= 3.9(EOL: 2025-10)).
## Quick Start
Setting the following can enable this formatter quickly.
@@ -17,7 +17,7 @@ Setting the following can enable this formatter quickly.
## Usage
-* Install `yapf` package from pip in following. This is optional but recommended way, else it will use the bundled `yapf=0.40.2`
+* Install `yapf` package from pip in following. This is optional but recommended way, else it will use the bundled `yapf=0.43.0`
```
pip install yapf
```
@@ -34,8 +34,8 @@ pip install yapf
}
```
-## Address crash for python3.7 or lower
-Use `yapf.interpreter` property to select a python interpreter that 3.8 or higher to run this tool by subprocess
+## Address crash for python3.8 or lower
+Use `yapf.interpreter` property to select a python interpreter that 3.9 or higher to run this tool by subprocess
## file mode & modifications mode