File tree Expand file tree Collapse file tree 9 files changed +2443
-65
lines changed Expand file tree Collapse file tree 9 files changed +2443
-65
lines changed Original file line number Diff line number Diff line change 4
4
directory : " /"
5
5
schedule :
6
6
interval : daily
7
- - package-ecosystem : pip
7
+ - package-ecosystem : uv
8
8
directory : " /"
9
9
schedule :
10
10
interval : daily
Original file line number Diff line number Diff line change @@ -24,27 +24,41 @@ jobs:
24
24
name : Check style formatting
25
25
steps :
26
26
- uses : " actions/checkout@v4"
27
- - uses : " actions/setup-python@v5"
27
+ - name : Install uv
28
+ uses : astral-sh/setup-uv@v5
28
29
with :
29
- python-version : " 3.x"
30
- - run : python3 -m pip install black
31
- - run : black .
30
+ version : " 0.7"
31
+ enable-cache : true
32
+ - name : " Set up Python"
33
+ uses : actions/setup-python@v5
34
+ with :
35
+ python-version-file : " .python-version"
36
+ - name : Install the project
37
+ run : uv sync --locked --all-extras --dev
38
+ - name : Run ruff
39
+ run : uv run ruff check
32
40
33
41
tests :
34
42
runs-on : " ubuntu-latest"
35
43
name : Run tests
36
44
steps :
37
45
- name : Check out code from GitHub
38
46
uses : " actions/checkout@v4"
39
- - name : Setup Python
40
- uses : " actions/setup-python@v5"
47
+ - name : Install uv
48
+ uses : astral-sh/setup-uv@v5
49
+ with :
50
+ version : " 0.7"
51
+ enable-cache : true
52
+ cache-dependency-glob : " uv.lock"
53
+ - name : " Set up Python"
54
+ uses : actions/setup-python@v5
41
55
with :
42
- python-version : " 3.12 "
43
- - name : Install requirements
44
- run : python3 -m pip install -r requirements_test.txt
56
+ python-version-file : " .python-version "
57
+ - name : Install the project
58
+ run : uv sync --locked --all-extras --dev
45
59
- name : Run tests
46
60
run : |
47
- pytest \
61
+ uv run pytest \
48
62
-qq \
49
63
--timeout=9 \
50
64
--durations=10 \
Original file line number Diff line number Diff line change @@ -27,27 +27,41 @@ jobs:
27
27
name : Check style formatting
28
28
steps :
29
29
- uses : " actions/checkout@v4"
30
- - uses : " actions/setup-python@v5"
30
+ - name : Install uv
31
+ uses : astral-sh/setup-uv@v5
31
32
with :
32
- python-version : " 3.x"
33
- - run : python3 -m pip install black
34
- - run : black .
33
+ version : " 0.7"
34
+ enable-cache : true
35
+ - name : " Set up Python"
36
+ uses : actions/setup-python@v5
37
+ with :
38
+ python-version-file : " .python-version"
39
+ - name : Install the project
40
+ run : uv sync --locked --all-extras --dev
41
+ - name : Run ruff
42
+ run : uv run ruff check
35
43
36
44
tests :
37
45
runs-on : " ubuntu-latest"
38
46
name : Run tests
39
47
steps :
40
48
- name : Check out code from GitHub
41
49
uses : " actions/checkout@v4"
42
- - name : Setup Python
43
- uses : " actions/setup-python@v5"
50
+ - name : Install uv
51
+ uses : astral-sh/setup-uv@v5
52
+ with :
53
+ version : " 0.7"
54
+ enable-cache : true
55
+ cache-dependency-glob : " uv.lock"
56
+ - name : " Set up Python"
57
+ uses : actions/setup-python@v5
44
58
with :
45
- python-version : " 3.12 "
46
- - name : Install requirements
47
- run : python3 -m pip install -r requirements_test.txt
59
+ python-version-file : " .python-version "
60
+ - name : Install the project
61
+ run : uv sync --locked --all-extras --dev
48
62
- name : Run tests
49
63
run : |
50
- pytest \
64
+ uv run pytest \
51
65
-qq \
52
66
--timeout=9 \
53
67
--durations=10 \
Original file line number Diff line number Diff line change
1
+ 3.13
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " tacmi"
3
+ version = " 1.9.12"
4
+ description = " This integration monitors the inputs and outputs of the devices connected to a C.M.I."
5
+ readme = " README.md"
6
+ license = " MIT"
7
+ license-files = [" LICENSE" ]
8
+ authors = [
9
+ {
name =
" DeerMaximum" ,
email =
" [email protected] " },
10
+ ]
11
+ maintainers = [
12
+ {
name =
" DeerMaximum" ,
email =
" [email protected] " },
13
+ ]
14
+ requires-python = " >=3.13.2"
15
+ keywords = [
16
+ " homeassistant" ,
17
+ " c.m.i." ,
18
+ ]
19
+ classifiers = [
20
+ " Development Status :: 5 - Production/Stable" ,
21
+ " Operating System :: OS Independent" ,
22
+ " Programming Language :: Python" ,
23
+ " Programming Language :: Python :: 3.13" ,
24
+ ]
25
+ dependencies = [
26
+ " ta-cmi==3.3.1" ,
27
+ ]
28
+
29
+ [project .urls ]
30
+ homepage = " https://github.com/DeerMaximum/Technische-Alternative-CMI"
31
+ repository = " https://github.com/DeerMaximum/Technische-Alternative-CMI"
32
+
33
+ [dependency-groups ]
34
+ dev = [
35
+ " aiohttp_cors" ,
36
+ " pytest-homeassistant-custom-component==0.13.232" ,
37
+ " josepy<2.0.0"
38
+ ]
39
+ lint = [
40
+ " ruff>=0.12.0"
41
+ ]
42
+
43
+ [tool .ruff ]
44
+ preview = true
45
+
46
+ [tool .ruff .lint .isort ]
47
+ case-sensitive = true
48
+
49
+ [tool .uv ]
50
+ default-groups = " all"
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments