1414 name : ruff codestyle check/linting
1515 runs-on : ubuntu-latest
1616
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ tool : [ruff, ty, ruff-extensive]
21+
1722 steps :
1823 - name : checkout code
1924 uses : actions/checkout@v4
@@ -24,13 +29,32 @@ jobs:
2429 python-version : 3.11
2530
2631 - name : install ruff
27- run : pip install ruff
32+ if : matrix.tool == 'ruff'
33+ run : pip install ruff==0.14.2
2834
2935 - name : run ruff linter src directory
30- run : ruff check hololinked
36+ if : matrix.tool == 'ruff'
37+ run : ruff check --config pyproject.toml hololinked
3138
3239 - name : run ruff linter tests directory
33- run : ruff check tests/*.py tests/things/*.py tests/helper-scripts/*.py
40+ if : matrix.tool == 'ruff'
41+ run : ruff check --config pyproject.toml tests/*.py tests/things/*.py tests/helper-scripts/*.py
42+
43+ - name : install ruff
44+ if : matrix.tool == 'ruff-extensive'
45+ run : pip install ruff
46+
47+ - name : run ruff linter src directory
48+ if : matrix.tool == 'ruff-extensive'
49+ run : ruff check --config ruff.toml hololinked/client
50+
51+ - name : install ty
52+ if : matrix.tool == 'ty'
53+ run : pip install ty==0.0.24
54+
55+ - name : run ty type checker
56+ if : matrix.tool == 'ty'
57+ run : ty check hololinked/client
3458
3559 scan :
3660 name : security scan (${{ matrix.tool }})
0 commit comments