Skip to content

Commit

Permalink
Dev5
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Sep 30, 2024
1 parent 3c45df8 commit dd540fd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
rev: v0.6.8
hooks:
- id: ruff
name: ruff unused imports
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# Packages for source formatting
# -----------------------------------------------------------------------------
pre-commit == 3.8.0
ruff == 0.6.5
autotyping == 24.3.0
ruff == 0.6.8
autotyping == 24.9.0
# -----------------------------------------------------------------------------
# Packages for other developement tasks
# -----------------------------------------------------------------------------
pur == 7.3.2
4 changes: 2 additions & 2 deletions requirements_setup.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
aiohttp == 3.10.5
aiohttp == 3.10.8
pydantic == 2.9.2
msgspec == 0.18.6
bidict == 0.23.1
watchdog == 5.0.2
watchdog == 5.0.3
ujson == 5.10.0
aiomqtt == 2.3.0

Expand Down
4 changes: 2 additions & 2 deletions run/conf_testing/lib/HABAppTests/test_rule/_rest_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import pprint
from types import TracebackType

from pytest import MonkeyPatch
from pytest import MonkeyPatch # noqa: PT013

import HABApp.openhab.connection.handler
import HABApp.openhab.connection.handler.func_async
import HABApp.openhab.process_events
from HABApp.config import CONFIG


def shorten_url(url: str):
def shorten_url(url: str) -> str:
url = str(url)
cfg = CONFIG.openhab.connection.url
if url.startswith(cfg):
Expand Down
2 changes: 1 addition & 1 deletion src/HABApp/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# Development versions contain the DEV-COUNTER postfix:
# - 24.01.0.DEV-1

__version__ = '24.09.0.DEV-4'
__version__ = '24.09.0.DEV-5'
3 changes: 2 additions & 1 deletion src/HABApp/core/files/watcher/base_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pathlib import Path

from watchdog.events import EVENT_TYPE_CLOSED as WD_EVENT_TYPE_CLOSED
from watchdog.events import EVENT_TYPE_CLOSED_NO_WRITE as WD_EVENT_TYPE_CLOSED_NO_WRITE
from watchdog.events import EVENT_TYPE_OPENED as WD_EVENT_TYPE_OPENED
from watchdog.events import FileSystemEvent

Expand Down Expand Up @@ -44,7 +45,7 @@ def dispatch(self, event: FileSystemEvent):
return None

# we don't process open and close events
if (e_type := event.event_type) == WD_EVENT_TYPE_OPENED or e_type == WD_EVENT_TYPE_CLOSED:
if event.event_type in (WD_EVENT_TYPE_OPENED, WD_EVENT_TYPE_CLOSED, WD_EVENT_TYPE_CLOSED_NO_WRITE):
return None

src = event.src_path
Expand Down
2 changes: 1 addition & 1 deletion src/HABApp/rule/interfaces/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from HABApp.rule.interfaces import http_interface as http
from HABApp.rule.interfaces import interface_http as http
from .rule_subprocess import async_subprocess_exec, FinishedProcessInfo

0 comments on commit dd540fd

Please sign in to comment.