Skip to content

Commit

Permalink
tidy up requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bonnes committed Sep 10, 2024
1 parent 2301b35 commit 5c4501d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 45 deletions.
17 changes: 9 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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 _.*'
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
### project ##########################################################################
# evohome-async, updated: 2024-06-24
# last checked/updated: 2024-09-10
#

[project]
Expand All @@ -16,8 +16,8 @@
{name = "David Bonnes", email = "[email protected]"},
]
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"
Expand Down
19 changes: 13 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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'
9 changes: 0 additions & 9 deletions requirements_cli.txt

This file was deleted.

40 changes: 21 additions & 19 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c4501d

Please sign in to comment.