Skip to content

Commit 2eb3c09

Browse files
authored
ruff --format=github --target-version=py37 .
1 parent 72d995e commit 2eb3c09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/actions/automating-builds-and-tests/building-and-testing-python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
- name: Lint with ruff
7474
run: |
7575
# stop the build if there are Python syntax errors or undefined names
76-
ruff --format=github --select=E9,F63,F7,F82 .
76+
ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
7777
# default set of ruff rules with GitHub Annotations
78-
ruff --format=github .
78+
ruff --format=github --target-version=py37 .
7979
- name: Test with pytest
8080
run: |
8181
pytest
@@ -277,7 +277,7 @@ steps:
277277

278278
### Using Ruff to lint code
279279

280-
The following example installs or upgrades `ruff` and uses it to lint all files. For more information, see [Ruff](https://beta.ruff.rs).
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).
281281

282282
```yaml{:copy}
283283
steps:
@@ -293,7 +293,7 @@ steps:
293293
- name: Lint with Ruff
294294
run: |
295295
pip install ruff
296-
ruff --format=github .
296+
ruff --format=github --target-version=py37 .
297297
continue-on-error: true
298298
```
299299

0 commit comments

Comments
 (0)