Skip to content

Commit

Permalink
python-deps(deps-dev): update ruff requirement from 0.4.3 to 0.4.4 in…
Browse files Browse the repository at this point in the history
… 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](astral-sh/ruff@v0.4.3...v0.4.4)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  dependency-group: python-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tektronix Bot <GithubBot-1010@fortive.onmicrosoft.com>
Co-authored-by: Nicholas Felt <nicholas.felt@tektronix.com>
  • Loading branch information
3 people authored May 13, 2024
1 parent e2260c1 commit 502d190
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -441,15 +441,15 @@ 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 .
!tests: pylint .
!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
Expand Down
2 changes: 1 addition & 1 deletion src/tm_devices/helpers/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 502d190

Please sign in to comment.