Skip to content

Commit

Permalink
Управление dev зависимостями через poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Oct 13, 2024
1 parent c1c2102 commit 162f9b3
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
python-version: '3.11'
- ha-version: '2024.1'
python-version: '3.11'
- ha-version: '2024.1'
python-version: '3.11'
- ha-version: '2024.2'
python-version: '3.12'
- ha-version: '2024.4'
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.config
custom_components/yandex_station
poetry.lock
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.1
rev: v0.6.9
hooks:
- id: ruff

- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.10.0
hooks:
- id: black

Expand Down
32 changes: 30 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
[tool.poetry]
name = "ha-yandex-station-intents"
package-mode = false

[tool.poetry.dependencies]
python = ">=3.12,<3.13"

[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
ruff = "^0.6.9"
isort = "^5.13.2"
black = "^24.10.0"

[tool.poetry.group.test.dependencies]
pytest-homeassistant-custom-component = "0.13.171"
mypy-dev = "1.12.0a5"
dacite = "^1.8.1"

[tool.poetry.group.homeassistant.dependencies]
homeassistant = "2024.10.0"
colorlog = "^6.8.2"
numpy = "*"

[tool.black]
line-length = 120

Expand All @@ -10,15 +33,16 @@ known_first_party = [
"custom_components.yandex_station_intents",
"tests",
]
skip_glob= [".venv*/*"]

[tool.ruff]
target-version = "py311"
line-length = 120

[tool.ruff.lint]
select = ["E", "F", "W", "T20", "Q"]

[tool.mypy]
python_version = 3.11
python_version = 3.12
follow_imports_for_stubs = true
local_partial_types = true
strict_equality = true
Expand All @@ -36,3 +60,7 @@ warn_unreachable = true

[tool.pytest.ini_options]
asyncio_mode = "auto"

[[tool.mypy.overrides]]
module = "custom_components.yandex_station.*"
ignore_errors = true
4 changes: 0 additions & 4 deletions requirements_dev.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tests/requirements_2023.10.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.63
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
2 changes: 1 addition & 1 deletion tests/requirements_2023.11.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.70
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
2 changes: 1 addition & 1 deletion tests/requirements_2023.12.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.82
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
2 changes: 1 addition & 1 deletion tests/requirements_2023.9.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.54
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
2 changes: 1 addition & 1 deletion tests/requirements_2024.1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.88
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
2 changes: 1 addition & 1 deletion tests/requirements_2024.2.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest-homeassistant-custom-component==0.13.100
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
3 changes: 1 addition & 2 deletions tests/requirements_2024.4.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--extra-index-url https://packagecloud.io/dext0r/pypi/pypi/simple
pytest-homeassistant-custom-component==0.13.112
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite
3 changes: 1 addition & 2 deletions tests/requirements_2024.5.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--extra-index-url https://packagecloud.io/dext0r/pypi/pypi/simple
pytest-homeassistant-custom-component==0.13.116
voluptuous-stubs==0.1.1
mypy-dev==1.12.0a5
dacite

0 comments on commit 162f9b3

Please sign in to comment.