Skip to content

Commit 162f9b3

Browse files
committed
Управление dev зависимостями через poetry
1 parent c1c2102 commit 162f9b3

13 files changed

+43
-20
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
python-version: '3.11'
3838
- ha-version: '2024.1'
3939
python-version: '3.11'
40-
- ha-version: '2024.1'
41-
python-version: '3.11'
4240
- ha-version: '2024.2'
4341
python-version: '3.12'
4442
- ha-version: '2024.4'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.config
2+
custom_components/yandex_station
3+
poetry.lock

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/charliermarsh/ruff-pre-commit
3-
rev: v0.4.1
3+
rev: v0.6.9
44
hooks:
55
- id: ruff
66

77
- repo: https://github.com/psf/black
8-
rev: 24.3.0
8+
rev: 24.10.0
99
hooks:
1010
- id: black
1111

pyproject.toml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
[tool.poetry]
2+
name = "ha-yandex-station-intents"
3+
package-mode = false
4+
5+
[tool.poetry.dependencies]
6+
python = ">=3.12,<3.13"
7+
8+
[tool.poetry.group.dev.dependencies]
9+
pre-commit = "^4.0.1"
10+
ruff = "^0.6.9"
11+
isort = "^5.13.2"
12+
black = "^24.10.0"
13+
14+
[tool.poetry.group.test.dependencies]
15+
pytest-homeassistant-custom-component = "0.13.171"
16+
mypy-dev = "1.12.0a5"
17+
dacite = "^1.8.1"
18+
19+
[tool.poetry.group.homeassistant.dependencies]
20+
homeassistant = "2024.10.0"
21+
colorlog = "^6.8.2"
22+
numpy = "*"
23+
124
[tool.black]
225
line-length = 120
326

@@ -10,15 +33,16 @@ known_first_party = [
1033
"custom_components.yandex_station_intents",
1134
"tests",
1235
]
13-
skip_glob= [".venv*/*"]
1436

1537
[tool.ruff]
1638
target-version = "py311"
1739
line-length = 120
40+
41+
[tool.ruff.lint]
1842
select = ["E", "F", "W", "T20", "Q"]
1943

2044
[tool.mypy]
21-
python_version = 3.11
45+
python_version = 3.12
2246
follow_imports_for_stubs = true
2347
local_partial_types = true
2448
strict_equality = true
@@ -36,3 +60,7 @@ warn_unreachable = true
3660

3761
[tool.pytest.ini_options]
3862
asyncio_mode = "auto"
63+
64+
[[tool.mypy.overrides]]
65+
module = "custom_components.yandex_station.*"
66+
ignore_errors = true

requirements_dev.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/requirements_2023.10.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest-homeassistant-custom-component==0.13.63
2-
voluptuous-stubs==0.1.1
2+
mypy-dev==1.12.0a5
33
dacite

tests/requirements_2023.11.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest-homeassistant-custom-component==0.13.70
2-
voluptuous-stubs==0.1.1
2+
mypy-dev==1.12.0a5
33
dacite

tests/requirements_2023.12.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest-homeassistant-custom-component==0.13.82
2-
voluptuous-stubs==0.1.1
2+
mypy-dev==1.12.0a5
33
dacite

tests/requirements_2023.9.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest-homeassistant-custom-component==0.13.54
2-
voluptuous-stubs==0.1.1
2+
mypy-dev==1.12.0a5
33
dacite

tests/requirements_2024.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest-homeassistant-custom-component==0.13.88
2-
voluptuous-stubs==0.1.1
2+
mypy-dev==1.12.0a5
33
dacite

0 commit comments

Comments
 (0)