From 5cbcafbef5fee8bc86cad1a381774334aa74c60b Mon Sep 17 00:00:00 2001 From: Nenad Bogojevic Date: Thu, 25 Jan 2024 22:54:29 +0000 Subject: [PATCH] Update devcontainer --- .devcontainer/devcontainer.json | 2 +- .github/workflows/stalebot.yml | 14 ++++++++++++++ requirements-dev.txt | 7 ++++++- requirements-ha-dev.txt | 1 + requirements-test.txt | 12 +++++++++++- requirements.txt | 4 ++-- 6 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/stalebot.yml create mode 100644 requirements-ha-dev.txt diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d76c55e..f1399e6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ // See https://aka.ms/vscode-remote/devcontainer.json for format details. { - "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye", + "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye", "name": "Midea Air Appliance (LAN) integration development", "forwardPorts": [ 8123 diff --git a/.github/workflows/stalebot.yml b/.github/workflows/stalebot.yml new file mode 100644 index 0000000..d151514 --- /dev/null +++ b/.github/workflows/stalebot.yml @@ -0,0 +1,14 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + days-before-stale: 60 + days-before-close: 7 \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 25096e4..15bfba3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1 +1,6 @@ -git+https://github.com/home-assistant/home-assistant.git@dev +black==23.11.0 +packaging==23.2 +pre-commit~=3.5 +PyGithub~=2.1 +pyupgrade~=3.15 +yamllint~=1.33 \ No newline at end of file diff --git a/requirements-ha-dev.txt b/requirements-ha-dev.txt new file mode 100644 index 0000000..25096e4 --- /dev/null +++ b/requirements-ha-dev.txt @@ -0,0 +1 @@ +git+https://github.com/home-assistant/home-assistant.git@dev diff --git a/requirements-test.txt b/requirements-test.txt index 058c82c..0c66c43 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,12 @@ -r requirements-dev.txt -pytest-homeassistant-custom-component~=0.9.3 +asynctest~=0.13 +flake8~=6.1 +flake8-docstrings~=1.7 +mypy==1.7.0 +pylint~=3.0 +pylint-strict-informational==0.1 +pytest>=7.2 +pytest-cov>=3.0 +pytest-homeassistant-custom-component>=0.12 +tzdata +ruff~=0.1 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e2a7609..61de888 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -pip>=21.0,<23.1 +pip>=21.0,<23.4 colorlog -homeassistant \ No newline at end of file +homeassistant>=2023.7.0 \ No newline at end of file