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 7014828 commit 81e5b93
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
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.

0 comments on commit 81e5b93

Please sign in to comment.