File tree Expand file tree Collapse file tree 8 files changed +20
-12
lines changed
Expand file tree Collapse file tree 8 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,18 @@ permissions:
2020jobs :
2121 test :
2222 runs-on : ubuntu-24.04
23+ strategy :
24+ matrix :
25+ python-version : ["3.11", "3.12", "3.13"]
2326 steps :
2427 - name : Checkout
2528 uses : actions/checkout@v5
2629
27- - name : Set up Python
30+ - name : Set up Python ${{ matrix.python-version }}
2831 uses : actions/setup-python@v6
2932 with :
30- python-version : " 3.11"
33+ python-version : ${{ matrix.python-version }}
34+ cache : " pip"
3135
3236 - name : Install pip
3337 run : |
Original file line number Diff line number Diff line change @@ -20,15 +20,18 @@ permissions:
2020jobs :
2121 test :
2222 runs-on : ubuntu-24.04
23+ strategy :
24+ matrix :
25+ python-version : ["3.11", "3.12", "3.13"]
2326
2427 name : Check Python code formatting
2528 steps :
2629 - uses : actions/checkout@v5
2730
28- - name : Set up Python
31+ - name : Set up Python ${{ matrix.python-version }}
2932 uses : actions/setup-python@v6
3033 with :
31- python-version : " 3.11 "
34+ python-version : ${{ matrix.python-version }}
3235
3336 - name : Install dependencies
3437 run : |
Original file line number Diff line number Diff line change 66
77import ucapi
88
9- loop = asyncio .get_event_loop ()
9+ loop = asyncio .new_event_loop ()
1010api = ucapi .IntegrationAPI (loop )
1111
1212
Original file line number Diff line number Diff line change 2020 create_ui_text ,
2121)
2222
23- loop = asyncio .get_event_loop ()
23+ loop = asyncio .new_event_loop ()
2424api = ucapi .IntegrationAPI (loop )
2525
2626# Simple commands which are supported by this example remote-entity
Original file line number Diff line number Diff line change 66
77import ucapi
88
9- loop = asyncio .get_event_loop ()
9+ loop = asyncio .new_event_loop ()
1010api = ucapi .IntegrationAPI (loop )
1111
1212
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ classifiers = [
1818 " Topic :: Home Automation" ,
1919 " Programming Language :: Python :: 3.11" ,
2020]
21- requires-python = " >=3.10 "
21+ requires-python = " >=3.11 "
2222dependencies = [
2323 " protobuf~=6.33.2" ,
2424 " pyee>=9.0" ,
@@ -40,7 +40,7 @@ content-type = "text/markdown; charset=UTF-8"
4040
4141[project .optional-dependencies ]
4242testing = [
43- " pylint" ,
43+ " pylint==4.0.4 " ,
4444 " flake8-docstrings" ,
4545 " flake8" ,
4646 " black" ,
Original file line number Diff line number Diff line change 22# Waiting for: https://github.com/pypa/pip/issues/11440
33# Workaround: use a pre-commit hook with https://github.com/scikit-image/scikit-image/blob/main/tools/generate_requirements.py
44
5- pylint
5+ # pin pylint version: it has a tendendy for stricter rules in patch updates!
6+ pylint==4.0.4
67flake8-docstrings
78flake8
89black
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ async def init(
151151
152152 if disable_mdns_publish is False :
153153 # Setup zeroconf service info
154- name = f" { self ._driver_info [' driver_id' ]} ._uc-integration._tcp.local."
154+ name = f' { self ._driver_info [" driver_id" ]} ._uc-integration._tcp.local.'
155155 hostname = local_hostname ()
156156 driver_name = _get_default_language_string (
157157 self ._driver_info ["name" ], "Unknown driver"
@@ -1262,7 +1262,7 @@ def local_hostname() -> str:
12621262
12631263 return (
12641264 os .getenv ("UC_MDNS_LOCAL_HOSTNAME" )
1265- or f" { socket .gethostname ().split ('.' , 1 )[0 ]} .local."
1265+ or f' { socket .gethostname ().split ("." , 1 )[0 ]} .local.'
12661266 )
12671267
12681268
You can’t perform that action at this time.
0 commit comments