You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- uses: {% data reusables.actions.action-checkout %}
@@ -129,7 +129,7 @@ jobs:
129
129
130
130
### Using a specific Python version
131
131
132
-
You can configure a specific version of python. For example, 3.9. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest minor release of Python 3.
132
+
You can configure a specific version of Python. For example, 3.10. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest minor release of Python 3.
133
133
134
134
```yaml{:copy}
135
135
name: Python package
@@ -157,7 +157,7 @@ jobs:
157
157
158
158
### Excluding a version
159
159
160
-
If you specify a version of Python that is not available, `setup-python` fails with an error such as: `##[error]Version 3.4 with arch x64 not found`. The error message includes the available versions.
160
+
If you specify a version of Python that is not available, `setup-python` fails with an error such as: `##[error]Version 3.6 with arch x64 not found`. The error message includes the available versions.
161
161
162
162
You can also use the `exclude` keyword in your workflow if there is a configuration of Python that you do not wish to run. For more information, see "[AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategy)."
The following example installs or upgrades `flake8` and uses it to lint all files. For more information, see [Flake8](http://flake8.pycqa.org/en/latest/).
280
+
The following example installs or upgrades `ruff` and uses it to lint all files. For more information, see [Ruff](https://beta.ruff.rs/docs).
282
281
283
282
```yaml{:copy}
284
283
steps:
@@ -291,10 +290,10 @@ steps:
291
290
run: |
292
291
python -m pip install --upgrade pip
293
292
pip install -r requirements.txt
294
-
- name: Lint with flake8
293
+
- name: Lint with Ruff
295
294
run: |
296
-
pip install flake8
297
-
flake8 .
295
+
pip install ruff
296
+
ruff --format=github --target-version=py37 .
298
297
continue-on-error: true
299
298
```
300
299
@@ -315,7 +314,7 @@ jobs:
315
314
runs-on: ubuntu-latest
316
315
strategy:
317
316
matrix:
318
-
python: ["3.8", "3.9", "3.10"]
317
+
python: ["3.9", "3.10", "3.11"]
319
318
320
319
steps:
321
320
- uses: {% data reusables.actions.action-checkout %}
0 commit comments