diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 48538ae2..36b7b01e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,12 +22,20 @@ repos: - id: mixed-line-ending - id: trailing-whitespace + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: python-check-blanket-noqa + - id: python-check-blanket-type-ignore + # id: python-no-eval + - id: python-no-log-warn + - repo: local hooks: # entry: '[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+' # email address - id: debugs - name: check for _DBG_* flags # should be False for published code + name: check for DEBUG flags # should be False for published code entry: '_DBG_.*=.*True' language: pygrep args: [-i] @@ -47,13 +55,6 @@ repos: args: [-i] exclude: .pre-commit-config.yaml # avoid false +ve - # - id: fixme - # name: check for FIXME flags - # entry: '#.*(FIXME|TODO)' - # language: pygrep - # args: [-i] - # exclude: (.pre-commit-config.yaml|^tests/.*\.py$) # avoid false +ve - # - id: private imports # name: check private imports # entry: 'from .* import _.*' diff --git a/pyproject.toml b/pyproject.toml index 9e32e6d0..50bf102c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ # ### project ########################################################################## -# evohome-async, updated: 2024-06-24 +# last checked/updated: 2024-09-10 # [project] @@ -16,8 +16,8 @@ {name = "David Bonnes", email = "zxdavb@bonnes.me"}, ] dependencies = [ - "aiohttp>=3.9.5", - "voluptuous>=0.13.1", + "aiohttp>=3.10.5", + "voluptuous>=0.15.2", ] requires-python = ">=3.12" license = "Apache-2.0" diff --git a/requirements.txt b/requirements.txt index b1e14c5a..7dad879a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,16 @@ -# last checked/updated: 2024/09/10 (c.f. HA 2023.10.x) +# Requirements to use the library via its CLI +# - last checked/updated: 2024-09-10 # -# for dev/test... -# -e . +# library requirements (dependencies) are in pyproject.toml +# - pip list | grep -E 'evohome|aiohttp|voluptuous' -# used by library (but not enough for CLI) -aiohttp>=3.10.5 -voluptuous>=0.15.2 + -e . + + +# also required if using the the library via the CLI, client.py + aiofiles >= 24.1.0 + asyncclick >= 8.1.7 # NOTE: async version + debugpy >= 1.8.5 # can invoke via CLI + +# check via: pip list | grep -E 'aiofiles|click|debugpy' diff --git a/requirements_cli.txt b/requirements_cli.txt deleted file mode 100644 index 91b59ad1..00000000 --- a/requirements_cli.txt +++ /dev/null @@ -1,9 +0,0 @@ -# last checked/updated: 2024/09/10 -# - -# for using the the library via the CLI, client.py - -r requirements.txt - -# used for CLI, but not for library - aiofiles>=24.1.0 - asyncclick>=8.1.7 diff --git a/requirements_dev.txt b/requirements_dev.txt index 11ca5166..47d58556 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,30 +1,32 @@ -# last checked/updated: 2024/09/10 +# Requirements to dev/test the source code +# - last checked/updated: 2024-09-10 # -# for using the the library via the CLI, client.py (includes requirements.txt) - -r requirements_cli.txt +# for using the the library with CLI + -r requirements.txt + + +# libraries required for development (lint/type/test)... +# - pip list | grep -E 'pre-commit|ruff|mypy|types-|voluptuous|pytest|hatch' # used for development (linting) - pre-commit>=3.8.0 - ruff>=0.6.4 + pre-commit >= 3.8.0 + ruff >= 0.6.4 # also: pre-commit-config.yaml # used for development (typing) - mypy>=1.11.2 - types-aiofiles>=24.1.0 # aiofiles is used only by CLI - types-PyYAML>=6.0.12 - voluptuous>=0.15.2 + mypy >= 1.11.2 + types-aiofiles >= 24.1.0 # used only by CLI + types-PyYAML >= 6.0.12 # used only by tests + voluptuous >= 0.15.2 # used for testing - pytest>=8.3.3 - pytest-asyncio>=0.24.0 - pytest-snapshot>=0.9.0 - pytest-sugar>=1.0.0 - pytest-xdist>=3.6.1 + pytest >= 8.3.3 + pytest-asyncio >= 0.24.0 + pytest-snapshot >= 0.9.0 + pytest-sugar >= 1.0.0 + pytest-xdist >= 3.6.1 # pytest-cov -# used for testing at runtime - debugpy >= 1.8.5 - # used for build/deploy - hatch>=1.12.0 - hatchling>=1.25.0 + hatch >= 1.12.0 + hatchling >= 1.25.0