Skip to content

Commit 54e390f

Browse files
dependabot[bot]Tektronix Botnfelt14
authored
python-deps(deps-dev): update ruff requirement from 0.11.13 to 0.12.0 in the python-dependencies group (#462)
* 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.12.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.11.13...0.12.0) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.12.0 dependency-type: direct:development dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * chore: Update dependencies. * refactor: Address new linting requirements * ci: fix pre-commit config file * docs: Use proper link for requests inventory file --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tektronix Bot <[email protected]> Co-authored-by: Nicholas Felt <[email protected]>
1 parent e8df1ba commit 54e390f

File tree

195 files changed

+105
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+105
-232
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ci:
55
autofix_prs: false
66
autoupdate_schedule: quarterly
77
skip:
8-
- check-poetry
98
- pylint
109
- pyright
1110
- pyright-verifytypes
1211
- pyroma
1312
- poetry-lock
1413
- poetry-audit
14+
- poetry-check
1515
- check-tm-devices-schema-file
1616
repos:
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -131,26 +131,28 @@ repos:
131131
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
132132
- id: poetry-audit
133133
name: poetry-audit
134-
entry: poetry
134+
entry: poetry audit
135135
language: system
136-
types: [toml]
137136
pass_filenames: false
137+
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
138138
always_run: true
139-
args: [audit, --json, --ignore-code=CVE-2019-8341]
139+
args: [--json, --ignore-code=CVE-2019-8341]
140+
- id: poetry-check
141+
name: poetry-check
142+
entry: poetry check
143+
language: system
144+
pass_filenames: false
145+
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$
146+
# args: [--strict] # TODO: enable this when poetry can be updated to v2+
140147
- id: check-tm-devices-schema-file
141148
name: check-tm-devices-schema-file
142149
entry: python
143150
language: system
144151
types: [python]
145152
pass_filenames: false
146153
args: [scripts/generate_schema.py]
147-
- repo: https://gitlab.com/smop/pre-commit-hooks
148-
rev: df034f88cf92b394e6f00a78fa97a2aa4e270e60 # frozen: v1.0.0
149-
hooks:
150-
- id: check-poetry
151-
# args: [--strict] # TODO: enable this when poetry can be updated to v2+
152154
- repo: https://github.com/astral-sh/ruff-pre-commit
153-
rev: 9aeda5d1f4bbd212c557da1ea78eca9e8c829e19 # frozen: v0.11.13
155+
rev: 8a948e557ca98afa9489998ad0b85515964df9c4 # frozen: v0.12.0
154156
hooks:
155157
- id: ruff-check
156158
args: [--fix, --exit-non-zero-on-fix]

docs/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ importlib-metadata==8.7.0 ; python_full_version >= "3.9.2" and python_version <
1616
inflect==7.5.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
1717
jinja2==3.1.6 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
1818
jsbeautifier==1.15.4 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
19-
markdown==3.8 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
19+
markdown==3.8.1 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
2020
markupsafe==3.0.2 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
2121
mergedeep==1.3.4 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
2222
mkdocs==1.6.1 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
@@ -51,9 +51,9 @@ super-collections==0.5.3 ; python_full_version >= "3.9.2" and python_full_versio
5151
symspellpy==6.9.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5252
termcolor==3.1.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5353
tomli==2.2.1 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
54-
typeguard==4.4.3 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
54+
typeguard==4.4.4 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5555
typing-extensions==4.14.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
56-
urllib3==2.4.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
56+
urllib3==2.5.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5757
watchdog==6.0.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5858
wcmatch==10.0 ; python_full_version >= "3.9.2" and python_full_version < "4.0.0"
5959
zipp==3.23.0 ; python_full_version >= "3.9.2" and python_version < "3.10"

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ plugins:
142142
domains: [std, py]
143143
- url: https://packaging.pypa.io/en/stable/objects.inv
144144
domains: [std, py]
145-
- url: https://docs.python-requests.org/en/stable/objects.inv
145+
- url: https://requests.readthedocs.io/en/stable/objects.inv
146146
domains: [std, py]
147147
- spellcheck:
148148
known_words: known_words.txt

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pytest-github-report = "^0.0.1"
156156
pytest-html = "^4.1.1"
157157
pytest-order = "^1.2.1"
158158
pytest-repeat = "^0.9.4"
159-
ruff = "0.11.13"
159+
ruff = "0.12.0"
160160

161161
[tool.poetry.scripts]
162162
list-visa-resources = "tm_devices:print_available_visa_devices"
@@ -220,6 +220,7 @@ disable = [
220220
"duplicate-code",
221221
"fixme", # caught by ruff
222222
"global-statement", # caught by ruff
223+
"import-outside-toplevel", # caught by ruff
223224
"import-private-name", # caught by pyright
224225
"invalid-name", # caught by ruff
225226
"line-too-long", # caught by ruff
@@ -338,6 +339,7 @@ ignore = [
338339
"UP024", # Replace aliased errors with `OSError` (allowed in this package)
339340
"UP035", # `X` is deprecated, use `Y` instead # TODO: Drop Python 3.9: enable this check
340341
"UP037", # Remove quotes from type annotation # TODO: Drop Python 3.9: enable this check
342+
"UP045", # Use `X | None` for type annotations # TODO: Drop Python 3.9: enable this check
341343
]
342344
pydocstyle = {convention = "google"}
343345
pylint = {max-args = 7}

src/tm_devices/commands/daq6510_commands.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: D402,PLR0913
21
"""The DAQ6510 commands module.
32
43
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

src/tm_devices/commands/dmm6500_commands.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: D402,PLR0913
21
"""The DMM6500 commands module.
32
43
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

src/tm_devices/commands/dmm7510_commands.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: D402,PLR0913
21
"""The DMM7510 commands module.
32
43
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

src/tm_devices/commands/gen_60xy3r_smu/buffer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: D402,PLR0913
21
# pyright: reportConstantRedefinition=none
32
"""The buffer commands module.
43

src/tm_devices/commands/gen_60xy3r_smu/script.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: D402,PLR0913
21
# pyright: reportConstantRedefinition=none
32
"""The script commands module.
43

src/tm_devices/commands/gen_60xy3r_smu/smu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: D402,PLR0913
1+
# ruff: noqa: PLR0913
22
# pyright: reportConstantRedefinition=none
33
"""The smu commands module.
44

0 commit comments

Comments
 (0)