update CI scripts
Hanno Böck

Hanno Böck commited on 2026-01-28 16:10:06
Zeige 2 geänderte Dateien mit 9 Einfügungen und 7 Löschungen.

... ...
@@ -1,4 +1,5 @@
1
-# last update: 2024-12-07
1
+# SPDX-License-Identifier: 0BSD
2
+# last update: 2026-01-07
2 3
 # https://github.com/hannob/codingstyle
3 4
 ---
4 5
 name: runpyci
... ...
@@ -10,18 +11,17 @@ jobs:
10 11
   build:
11 12
     strategy:
12 13
       matrix:
13
-        python-version: [3.9, 3.x, 3.14-dev]
14
+        python-version: [3.12, 3.x]
14 15
     runs-on: ubuntu-latest
15 16
     steps:
16
-      - uses: actions/checkout@v4
17
+      - uses: actions/checkout@v6
17 18
       - name: Set up Python ${{ matrix.python-version }} ${{ matrix.os }}
18
-        uses: actions/setup-python@v5
19
+        uses: actions/setup-python@v6
19 20
         with:
20 21
           python-version: ${{ matrix.python-version }}
21 22
       - name: Install dependencies and linters
22 23
         run: |
23 24
           [ -e requirements.txt ] && pip install -r requirements.txt
24
-          pip install setuptools  # CUSTOM: required until we move to pyproject
25 25
           pip install pycodestyle pyupgrade pyflakes dlint pylint ruff
26 26
       - name: Run tests
27 27
         env:
... ...
@@ -1,5 +1,6 @@
1 1
 #!/bin/bash
2
-# last update: 2025-07-02
2
+# SPDX-License-Identifier: 0BSD
3
+# last update: 2025-11-24
3 4
 # https://github.com/hannob/codingstyle
4 5
 set -euo pipefail
5 6
 
... ...
@@ -7,13 +8,14 @@ PYLINTIG="consider-using-with,design,fixme,invalid-name,missing-docstring,modifi
7 8
 RUFFIG="ANN,C90,D,FIX001,FIX002,ICN001,PLR0911,PLR0912,PLR0913,PLR0915,PTH,S314,S501,S603,SLF001,T201,TD002,TD003,B008,BLE001,COM812,FBT002,I001,N802,N806,PERF203,PERF401,PLC0415,PLR2004,PLW0602,PLW0603,PT009,RET505,RUF100,S202,S310,S607,S608,SIM102,SIM105,SIM108,SIM113,SIM114,SIM115,TD001,TD004,TRY300"
8 9
 
9 10
 pyfind=$(find -name \*.py)
10
-pygrep=$(grep -rl --exclude-dir=.ruff_cache '^#!/usr/bin/python\|^#!/usr/bin/env python' .)
11
+pygrep=$(grep -rl --exclude-dir=.ruff_cache '^#!/usr/bin/python\|^#!/usr/bin/env python' . || true)
11 12
 pyfiles=$(echo "$pyfind" "$pygrep" | sort -u)
12 13
 
13 14
 pycodestyle --max-line-length=100 --ignore=W503,E203 $pyfiles
14 15
 pyupgrade --py313-plus $pyfiles
15 16
 pyflakes $pyfiles
16 17
 flake8 --select=DUO --ignore=DUO107,DUO123,DUO131 $pyfiles
18
+isort --line-length=100 --diff --check-only .
17 19
 pylint --disable=$PYLINTIG $pyfiles
18 20
 ruff check --line-length=100 --select=ALL --ignore=$RUFFIG $pyfiles
19 21
 
20 22