Skip to content

Commit e7e231a

Browse files
committed
increase ruff's target python version to 3.12 (up from the default of 3.10 and same as our minimum)
1 parent b18aa9a commit e7e231a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/python-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
9090
echo "➡️ Checking Python code with ruff..."
9191
echo "::group::Running ruff check"
92-
if ! ruff check; then
92+
if ! ruff check --target-version py312; then
9393
failed=1
9494
echo "::endgroup::"
9595
echo "::error:: Ruff check failed."

.github/workflows/python-fix.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
echo "Fixing Python format with ruff"
5757
ruff format . || true
5858
echo "Fixing Python linter issues with ruff"
59-
ruff check --fix . || true
59+
ruff check --fix --target-version py312 . || true
6060
6161
- name: Handle fix commit
6262
uses: ./phlex-src/.github/actions/handle-fix-commit

0 commit comments

Comments
 (0)