From 502d19088dae1ac9510e8c5e8422861477d170ce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 16:33:46 +0000 Subject: [PATCH] python-deps(deps-dev): update ruff requirement from 0.4.3 to 0.4.4 in the python-dependencies group (#214) * python-deps(deps-dev): update ruff requirement Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. Updates `ruff` to 0.4.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.4.3...v0.4.4) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] * ci: Update python linters and pre-commit dependencies. * refactor: Ignore a disputed cve affecting every single version of pip since there is no other workaround --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tektronix Bot Co-authored-by: Nicholas Felt --- .pre-commit-config.yaml | 4 ++-- docs/requirements.txt | 2 +- pyproject.toml | 8 ++++---- src/tm_devices/helpers/functions.py | 2 +- tests/requirements.txt | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a97b119d..487107d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -130,9 +130,9 @@ repos: types: [toml] pass_filenames: false always_run: true - args: [audit, --json] + args: [audit, --json, --ignore-code=CVE-2018-20225] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.4.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/docs/requirements.txt b/docs/requirements.txt index 3773bf82..f9fbba8e 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -10,7 +10,7 @@ colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" editdistpy==0.1.4 ; python_version >= "3.8" and python_version < "4.0" 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.44.0 ; python_version >= "3.8" and python_version < "4.0" +griffe==0.45.0 ; python_version >= "3.8" and python_version < "4.0" idna==3.7 ; python_version >= "3.8" and python_version < "4.0" importlib-metadata==7.1.0 ; python_version >= "3.8" and python_version < "3.10" jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0" diff --git a/pyproject.toml b/pyproject.toml index ac59fbf5..4d08662c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,7 +115,7 @@ pylint = "3.1.0" pyright = "1.1.362" pyroma = "^4.2" python-semantic-release = "^9.6.0" -ruff = "0.4.3" +ruff = "0.4.4" 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.4.3" +ruff = "0.4.4" tomli = "^2.0.1" [tool.poetry.scripts] @@ -441,7 +441,7 @@ setenv = commands_pre = poetry install --no-root --without=main commands = - !tests: safety check + !tests: safety check --ignore=67599 !tests: ruff format --check --diff . !tests: docformatter --check --diff . !tests: ruff check . @@ -449,7 +449,7 @@ commands = !tests: pyright . !tests: pyright --verifytypes tm_devices --ignoreexternal !tests: pyroma . - !tests: poetry audit + !tests: poetry audit --ignore-code=CVE-2018-20225 !tests: poetry build --output=dist_{envname} !tests: twine check --strict dist_{envname}/* !tests: pre-commit run --all-files --show-diff-on-failure diff --git a/src/tm_devices/helpers/functions.py b/src/tm_devices/helpers/functions.py index 2002f7f4..79105bce 100644 --- a/src/tm_devices/helpers/functions.py +++ b/src/tm_devices/helpers/functions.py @@ -336,7 +336,7 @@ def create_visa_connection( stacklevel=4, ) # The broad except is because pyvisa_py can throw a base exception in the tcpip.py file - except Exception as error_1: # noqa: BLE001 + except Exception as error_1: if not retry_connection: message = f"Unable to establish a VISA connection to {resource_expression}" raise ConnectionError(message) from error_1 diff --git a/tests/requirements.txt b/tests/requirements.txt index b2502a45..f8762b78 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -38,7 +38,7 @@ 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.31.0 ; python_version >= "3.8" and python_version < "4.0" -ruff==0.4.3 ; python_version >= "3.8" and python_version < "4.0" +ruff==0.4.4 ; python_version >= "3.8" and python_version < "4.0" setuptools==69.5.1 ; 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"