diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 6fa92e07..12197732 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -7,6 +7,17 @@ on: workflow_dispatch: jobs: + Python_lint: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.14"] + steps: + - uses: actions/checkout@v6 + - name: Lint with ruff # See pyproject.toml for settings + uses: astral-sh/ruff-action@v3 + - run: ruff format --check --diff + Python_tests: runs-on: ${{ matrix.os }} strategy: @@ -35,9 +46,6 @@ jobs: python -m pip install --upgrade pip pip install --editable ".[dev]" - run: ./gyp -V && ./gyp --version && gyp -V && gyp --version - - name: Lint with ruff # See pyproject.toml for settings - uses: astral-sh/ruff-action@v3 - - run: ruff format --check --diff - name: Test with pytest # See pyproject.toml for settings run: pytest # - name: Run doctests with pytest diff --git a/pylib/gyp/simple_copy.py b/pylib/gyp/simple_copy.py index 8b026642..2b9100f3 100644 --- a/pylib/gyp/simple_copy.py +++ b/pylib/gyp/simple_copy.py @@ -24,8 +24,8 @@ def deepcopy(x): return _deepcopy_dispatch[type(x)](x) except KeyError: raise Error( - "Unsupported type %s for deepcopy. Use copy.deepcopy " - + "or expand simple_copy support." % type(x) + f"Unsupported type {type(x)} for deepcopy. Use copy.deepcopy " + + "or expand simple_copy support." )