diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6efa8781..80e45b1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: remove-tabs - id: forbid-tabs - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.0 + rev: 0.29.1 hooks: - id: check-readthedocs - id: check-dependabot @@ -56,7 +56,7 @@ repos: hooks: - id: blacken-docs files: \.(rst|md|markdown|tex)$ - additional_dependencies: [black==23.12.1] # This may need to be updated/removed in the future once ruff supports formatting python code blocks in markdown + additional_dependencies: [black==24.4.2] # This may need to be updated/removed in the future once ruff supports formatting python code blocks in markdown args: [--line-length=100] - repo: https://github.com/lyz-code/yamlfix rev: 1.16.0 @@ -139,7 +139,7 @@ repos: always_run: true args: [audit, --json, --ignore-code=CVE-2019-8341] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.4 + rev: v0.5.5 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/docs/requirements.txt b/docs/requirements.txt index fef627f8..b51e2975 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -12,7 +12,7 @@ editorconfig==0.12.4 ; python_version >= "3.8" and python_version < "4.0" ghp-import==2.1.0 ; python_version >= "3.8" and python_version < "4.0" griffe==0.47.0 ; python_version >= "3.8" and python_version < "4.0" idna==3.7 ; python_version >= "3.8" and python_version < "4.0" -importlib-metadata==8.0.0 ; python_version >= "3.8" and python_version < "3.10" +importlib-metadata==8.2.0 ; python_version >= "3.8" and python_version < "3.10" jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0" jsbeautifier==1.15.1 ; python_version >= "3.8" and python_version < "4.0" markdown==3.6 ; python_version >= "3.8" and python_version < "4.0" @@ -29,19 +29,19 @@ mkdocs-macros-plugin==1.0.5 ; python_version >= "3.8" and python_version < "4.0" mkdocs-mermaid2-plugin==1.1.1 ; python_version >= "3.8" and python_version < "4.0" mkdocs-section-index==0.3.9 ; python_version >= "3.8" and python_version < "4.0" mkdocs-spellcheck==1.1.0 ; python_version >= "3.8" and python_version < "4.0" -mkdocstrings==0.25.1 ; python_version >= "3.8" and python_version < "4.0" +mkdocstrings==0.25.2 ; python_version >= "3.8" and python_version < "4.0" mkdocstrings-python==1.10.5 ; python_version >= "3.8" and python_version < "4.0" mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4.0" packaging==24.1 ; python_version >= "3.8" and python_version < "4.0" pathspec==0.12.1 ; python_version >= "3.8" and python_version < "4.0" platformdirs==4.2.2 ; python_version >= "3.8" and python_version < "4.0" pygments==2.18.0 ; python_version >= "3.8" and python_version < "4.0" -pymdown-extensions==10.8.1 ; python_version >= "3.8" and python_version < "4.0" +pymdown-extensions==10.9 ; python_version >= "3.8" and python_version < "4.0" python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0" pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "4.0" pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0" requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0" -setuptools==71.1.0 ; python_version >= "3.8" and python_version < "4.0" +setuptools==72.0.0 ; python_version >= "3.8" and python_version < "4.0" six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" soupsieve==2.5 ; python_version >= "3.8" and python_version < "4.0" symspellpy==6.7.7 ; python_version >= "3.8" and python_version < "4.0" diff --git a/pyproject.toml b/pyproject.toml index 54b7f798..cbb1eb00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,10 +112,10 @@ pre-commit = [ pre-commit-update = "^0.3.0" pyclean = "^3.0.0" pylint = "3.2.6" -pyright = "1.1.372" +pyright = "1.1.373" pyroma = "^4.2" python-semantic-release = "^9.6.0" -ruff = "0.5.4" +ruff = "0.5.5" safety = "^3.2.0" toml-sort = "^0.23.0" tox = "^4.0" @@ -159,7 +159,7 @@ pytest-env = "^1.1.3" pytest-github-report = "^0.0.1" pytest-html = "^4.1.1" pytest-order = "^1.2.1" -ruff = "0.5.4" +ruff = "0.5.5" tomli = "^2.0.1" [tool.poetry.scripts] diff --git a/tests/requirements.txt b/tests/requirements.txt index d82cc7bb..eb3ada1b 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -15,7 +15,7 @@ flask==3.0.3 ; python_version >= "3.8" and python_version < "4.0" future-fstrings==1.2.0 ; python_version >= "3.8" and python_version < "4.0" http-server-mock==1.7 ; python_version >= "3.8" and python_version < "4.0" idna==3.7 ; python_version >= "3.8" and python_version < "4.0" -importlib-metadata==8.0.0 ; python_version >= "3.8" and python_version < "3.10" +importlib-metadata==8.2.0 ; python_version >= "3.8" and python_version < "3.10" iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "4.0" itsdangerous==2.2.0 ; python_version >= "3.8" and python_version < "4.0" jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0" @@ -27,7 +27,7 @@ packaging==24.1 ; python_version >= "3.8" and python_version < "4.0" pathvalidate==3.2.0 ; python_version >= "3.8" and python_version < "4.0" pluggy==1.5.0 ; python_version >= "3.8" and python_version < "4.0" pytablewriter==1.2.0 ; python_version >= "3.8" and python_version < "4.0" -pytest==8.3.1 ; python_version >= "3.8" and python_version < "4.0" +pytest==8.3.2 ; python_version >= "3.8" and python_version < "4.0" pytest-cov==5.0.0 ; python_version >= "3.8" and python_version < "4.0" pytest-depends==1.0.1 ; python_version >= "3.8" and python_version < "4.0" pytest-env==1.1.3 ; python_version >= "3.8" and python_version < "4.0" @@ -38,8 +38,8 @@ pytest-order==1.2.1 ; python_version >= "3.8" and python_version < "4.0" python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0" pytz==2024.1 ; python_version >= "3.8" and python_version < "4.0" requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0" -ruff==0.5.4 ; python_version >= "3.8" and python_version < "4.0" -setuptools==71.1.0 ; python_version >= "3.8" and python_version < "4.0" +ruff==0.5.5 ; python_version >= "3.8" and python_version < "4.0" +setuptools==72.0.0 ; python_version >= "3.8" and python_version < "4.0" six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" soupsieve==2.5 ; python_version >= "3.8" and python_version < "4.0" tabledata==1.3.3 ; python_version >= "3.8" and python_version < "4.0" diff --git a/tests/test_device_manager.py b/tests/test_device_manager.py index bee271c1..da3b1df5 100644 --- a/tests/test_device_manager.py +++ b/tests/test_device_manager.py @@ -72,7 +72,7 @@ class TestDeviceManager: # pylint: disable=no-self-use # Get the list of device types, ignore the unit test ones since # this test only applies to actual supported devices. "device_type", - list(filter(lambda x: "UNIT_TEST" not in x, (y.name for y in DeviceTypes))), + list(filter(lambda x: "UNIT_TEST" not in x, (y.name for y in DeviceTypes))), # pyright: ignore[reportCallIssue,reportOperatorIssue] ) def test_supported_device_type_methods(self, device_type: str) -> None: """Test that all supported device types have a getter method in the DeviceManager.