Skip to content

Commit

Permalink
ci: Обновлены зависимости
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Oct 13, 2024
1 parent 29745dc commit 1930ae4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 15 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -37,18 +37,16 @@ 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'
python-version: '3.12'
- ha-version: '2024.5'
python-version: '3.12'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -73,7 +71,7 @@ jobs:
name: Validate for HACS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: HACS validation
uses: hacs/action@main
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.

0 comments on commit 1930ae4

Please sign in to comment.