Skip to content

Commit 2c1c2f1

Browse files
committed
update client folder files
1 parent 163fbc8 commit 2c1c2f1

15 files changed

Lines changed: 1338 additions & 707 deletions

.github/workflows/ci-pipeline.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
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 }})

hololinked/client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""expose client objects per protocol using the Thing Description."""
2+
13
from ..config import global_config # noqa: F401
24
from .factory import ClientFactory as ClientFactory
35
from .proxy import ObjectProxy as ObjectProxy

0 commit comments

Comments
 (0)