Skip to content

Commit 916139d

Browse files
dependabot[bot]tek-githubbot-1010nfelt14
authored
python-deps(deps): bump the python-dependencies group across 1 directory with 3 updates (#544)
* python-deps(deps): bump the python-dependencies group across 1 directory with 3 updates Updates the requirements on [pip](https://github.com/pypa/pip), [coverage](https://github.com/coveragepy/coveragepy) and [ruff](https://github.com/astral-sh/ruff) to permit the latest version. Updates `pip` to 26.0.1 - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](pypa/pip@25.0...26.0.1) Updates `coverage` from 7.13.2 to 7.13.3 - [Release notes](https://github.com/coveragepy/coveragepy/releases) - [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst) - [Commits](coveragepy/coveragepy@7.13.2...7.13.3) Updates `ruff` from 0.14.14 to 0.15.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.14.14...0.15.0) --- updated-dependencies: - dependency-name: pip dependency-version: 26.0.1 dependency-type: direct:development dependency-group: python-dependencies - dependency-name: coverage dependency-version: 7.13.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-dependencies - dependency-name: ruff dependency-version: 0.15.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Update dependencies. * fix: Address linting issues by adding noqa comments for specific function checks --------- 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 <TEK-GithubBot-1010@tektronix.com> Co-authored-by: Nicholas Felt <nicholas.felt@tektronix.com>
1 parent 5bab6a6 commit 916139d

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454
- id: actionlint
5555
additional_dependencies: [pyflakes, shellcheck-py]
5656
- repo: https://github.com/commitizen-tools/commitizen
57-
rev: 5857050259653556030b6b1f19f53e8868a427f6 # frozen: v4.12.1
57+
rev: 2cfb8c65566150f3ab03aa6c36cfddca8f5003e3 # frozen: v4.13.5
5858
hooks:
5959
- id: commitizen
6060
stages: [commit-msg]
@@ -151,7 +151,7 @@ repos:
151151
pass_filenames: false
152152
args: [scripts/generate_schema.py]
153153
- repo: https://github.com/astral-sh/ruff-pre-commit
154-
rev: 45ef068da5f21267bb2a7ec4a623092959f09ce5 # frozen: v0.14.14
154+
rev: 0470f7c8a653e950f7cc5a653204ceb3fde4c02a # frozen: v0.15.0
155155
hooks:
156156
- id: ruff-check
157157
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ version = "3.5.0"
108108

109109
[tool.poetry.group.dev.dependencies]
110110
nodeenv = "^1.9.1"
111-
pip = "^25.0"
111+
pip = "^26.0"
112112
poetry = "^2.2.0"
113113
poetry-audit-plugin = "^1.0.0"
114114
poetry-plugin-export = "^1.7.1"
@@ -161,7 +161,7 @@ pytest-github-report = "^0.0.1"
161161
pytest-html = "^4.1.1"
162162
pytest-order = "^1.2.1"
163163
pytest-repeat = "^0.9.4"
164-
ruff = "0.14.14"
164+
ruff = "0.15.0"
165165

166166
[tool.pylint.basic]
167167
good-names = ["_"]

src/tm_devices/components/dm_config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def load_config_file(self, config_file_path: str | os.PathLike[str] | None = Non
240240
config_file_path: The path to the config file to load.
241241
"""
242242
# Grabs path from environment variable with fallback to the default path
243-
file_path = config_file_path if config_file_path else self.defined_config_file_path
243+
file_path = config_file_path or self.defined_config_file_path
244244
# Automatically handles toml and yaml
245245
options, devices_list = self.__parse_config_file(file_path)
246246
self.__add_from_device_list(devices_list)

src/tm_devices/drivers/afgs/afg31k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _get_series_specific_constraints(
122122
square_mult, other_mult, arb_mult = self._get_driver_specific_multipliers(model_number)
123123
low_freq_range = 1.0e-6
124124
# the maximum frequency of the SIN wave depends on the model mumber
125-
if function.name in {SignalGeneratorFunctionsAFG.SIN.name}:
125+
if function.name in {SignalGeneratorFunctionsAFG.SIN.name}: # noqa: FURB171
126126
high_freq_range = model_multiplier * freq_base
127127
# each waveform has a maximum frequency which is a multiple of SIN wave constraints
128128
elif function.name == SignalGeneratorFunctionsAFG.ARBITRARY.name:

src/tm_devices/drivers/afgs/afg3k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_series_specific_constraints(
121121
square_wave_mult, other_wave_mult = self._get_driver_specific_multipliers(model_number)
122122

123123
# SIN waves are representative of the model number
124-
if function.name in {SignalGeneratorFunctionsAFG.SIN.name}:
124+
if function.name in {SignalGeneratorFunctionsAFG.SIN.name}: # noqa: FURB171
125125
high_freq_range = base_freq * model_multiplier
126126
low_freq_range = 1.0e-6
127127
# each waveform has a maximum frequency which is a multiple of SIN wave constraints

src/tm_devices/drivers/scopes/tekscope/tekscope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,15 +961,15 @@ def get_waveform_constraints( # pyright: ignore[reportIncompatibleMethodOverrid
961961
)
962962
amplitude_multiplier = 1
963963

964-
if function in {SignalGeneratorFunctionsIAFG.SIN}:
964+
if function in {SignalGeneratorFunctionsIAFG.SIN}: # noqa: FURB171
965965
frequency_multiplier = 1
966966
elif function in {
967967
SignalGeneratorFunctionsIAFG.SQUARE,
968968
SignalGeneratorFunctionsIAFG.PULSE,
969969
SignalGeneratorFunctionsIAFG.ARBITRARY,
970970
}:
971971
frequency_multiplier = 0.5
972-
elif function in {SignalGeneratorFunctionsIAFG.SINC}:
972+
elif function in {SignalGeneratorFunctionsIAFG.SINC}: # noqa: FURB171
973973
frequency_multiplier = 0.04
974974
amplitude_multiplier = 0.6
975975
elif function in {

src/tm_devices/helpers/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def get_version(version_string: str) -> Version:
572572
version_string.replace("." + version_parts[-1], "+" + version_parts[-1])
573573
)
574574
elif version_string.count("-") == 1 and _VALID_VERSION_REGEX.match(
575-
version_string.split("-")[0]
575+
version_string.split("-", maxsplit=1)[0]
576576
):
577577
new_version_string = version_string.replace("-", "+", 1)
578578
if new_version_string.count("+") == 2: # noqa: PLR2004

src/tm_devices/helpers/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def __log_message_to_console_and_traceback_to_file(
339339
"""
340340
file_handler = __log_to_specific_handler_type_only(
341341
logging.FileHandler,
342-
message.split("\n")[0] + additional_message_for_file + "\n\n",
342+
message.split("\n", maxsplit=1)[0] + additional_message_for_file + "\n\n",
343343
"EXCEPTION",
344344
exc_info=exc_info,
345345
)

tests/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ chardet==5.2.0 ; python_version >= "3.10" and python_version < "3.15"
55
charset-normalizer==3.4.4 ; python_version >= "3.10" and python_version < "3.15"
66
click==8.3.1 ; python_version >= "3.10" and python_version < "3.15"
77
colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.15"
8-
coverage==7.13.2 ; python_version >= "3.10" and python_version < "3.15"
8+
coverage==7.13.3 ; python_version >= "3.10" and python_version < "3.15"
99
dataproperty==1.1.0 ; python_version >= "3.10" and python_version < "3.15"
1010
dnspython==2.8.0 ; python_version >= "3.10" and python_version < "3.15"
1111
exceptiongroup==1.3.1 ; python_version == "3.10"
@@ -39,7 +39,7 @@ pytest-repeat==0.9.4 ; python_version >= "3.10" and python_version < "3.15"
3939
python-dateutil==2.9.0.post0 ; python_version >= "3.10" and python_version < "3.15"
4040
pytz==2025.2 ; python_version >= "3.10" and python_version < "3.15"
4141
requests==2.32.5 ; python_version >= "3.10" and python_version < "3.15"
42-
ruff==0.14.14 ; python_version >= "3.10" and python_version < "3.15"
42+
ruff==0.15.0 ; python_version >= "3.10" and python_version < "3.15"
4343
setuptools==80.10.2 ; python_version >= "3.10" and python_version < "3.15"
4444
six==1.17.0 ; python_version >= "3.10" and python_version < "3.15"
4545
soupsieve==2.8.3 ; python_version >= "3.10" and python_version < "3.15"

tests/test_scopes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ def test_tekscope(device_manager: DeviceManager) -> None: # noqa: PLR0915
162162
with mock.patch.object(
163163
scope,
164164
"query",
165-
side_effect=lambda cmd, *a, **kw: "1;0;1;0;1" # pyright: ignore[reportUnknownLambdaType]
166-
if cmd == ":CURVE?"
167-
else _original_query(cmd, *a, **kw), # pyright: ignore[reportUnknownArgumentType]
165+
side_effect=lambda cmd, *a, **kw: ( # pyright: ignore[reportUnknownLambdaType]
166+
"1;0;1;0;1" if cmd == ":CURVE?" else _original_query(cmd, *a, **kw) # pyright: ignore[reportUnknownArgumentType]
167+
),
168168
):
169169
curve = scope.curve_query(1, wfm_type="TimeDomain", output_csv_file=filepath.as_posix())
170170
with filepath.open(encoding="utf8") as curve_csv:

0 commit comments

Comments
 (0)