Skip to content

Commit f8c83b0

Browse files
legendecascclauss
andauthored
chore: fix ruff check (#337)
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 2b1e224 commit f8c83b0

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/python_tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
Python_lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.14"]
15+
steps:
16+
- uses: actions/checkout@v6
17+
- name: Lint with ruff # See pyproject.toml for settings
18+
uses: astral-sh/ruff-action@v3
19+
- run: ruff format --check --diff
20+
1021
Python_tests:
1122
runs-on: ${{ matrix.os }}
1223
strategy:
@@ -35,9 +46,6 @@ jobs:
3546
python -m pip install --upgrade pip
3647
pip install --editable ".[dev]"
3748
- run: ./gyp -V && ./gyp --version && gyp -V && gyp --version
38-
- name: Lint with ruff # See pyproject.toml for settings
39-
uses: astral-sh/ruff-action@v3
40-
- run: ruff format --check --diff
4149
- name: Test with pytest # See pyproject.toml for settings
4250
run: pytest
4351
# - name: Run doctests with pytest

pylib/gyp/simple_copy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def deepcopy(x):
2424
return _deepcopy_dispatch[type(x)](x)
2525
except KeyError:
2626
raise Error(
27-
"Unsupported type %s for deepcopy. Use copy.deepcopy "
28-
+ "or expand simple_copy support." % type(x)
27+
f"Unsupported type {type(x)} for deepcopy. Use copy.deepcopy "
28+
+ "or expand simple_copy support."
2929
)
3030

3131

0 commit comments

Comments
 (0)