Skip to content

Commit

Permalink
python-deps(deps): Bump the python-dependencies group with 2 updates (#…
Browse files Browse the repository at this point in the history
…159)

* python-deps(deps): Bump the python-dependencies group with 2 updates

Updates the requirements on [pyright](https://github.com/RobertCraigie/pyright-python) and [ruff](https://github.com/astral-sh/ruff) to permit the latest version.

Updates `pyright` to 1.1.352
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.351...v1.1.352)

Updates `ruff` to 0.3.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@v0.2.2...v0.3.0)

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

Signed-off-by: dependabot[bot] <[email protected]>

* ci: Update python linters and pre-commit dependencies.

* style: Run ruff formatter over the code.

---------

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]>
  • Loading branch information
3 people authored Mar 4, 2024
1 parent a8b72dc commit 7644b5e
Show file tree
Hide file tree
Showing 848 changed files with 2,137 additions and 1,211 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: x # any version
check-latest: true
- name: Install workflow dependencies
run: pip install poetry yamlfix toml-sort requests pre-commit-update
run: pip install poetry yamlfix toml-sort requests pre-commit-update pre-commit
- uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.TEK_OPENSOURCE_GPG_SIGNING_KEY_PRIVATE }}
Expand All @@ -31,6 +31,10 @@ jobs:
git_commit_gpgsign: true
- name: Run updater script
run: python scripts/update_development_dependencies.py --no-install
- name: Run pre-commit
env:
SKIP: pylint,pyright,pyright-verifytypes,pyroma
run: python -m pre_commit run --all
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'ci: Update python linters and pre-commit dependencies.'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ repos:
always_run: true
args: [., --min=10]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This file only contains a selection of the most common options. For a full list see the
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

import os
import shutil

Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/adding_devices.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of adding devices via Python code."""

from tm_devices import DeviceManager
from tm_devices.helpers import (
DMConfigOptions,
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/adding_devices_with_env_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
These environment variables are settable outside Python code, usually they are set in the shell used
to execute the Python script.
"""

import os

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/alias_usage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of alias usage."""

from tm_devices import DeviceManager

with DeviceManager(verbose=True) as dm:
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/custom_device_driver_support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of external device support via a custom driver."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO5
from tm_devices.drivers.pi.scopes.scope import Scope
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/disable_command_verification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing how to disable the verification portion of the ``.set_and_check()`` method."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO5, SMU2601B

Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/pyvisa_resource_access.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Directly access the PyVISA resource object."""

from tm_devices import DeviceManager

with DeviceManager() as device_manager:
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/register_dm_atexit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing how to register the DeviceManager to close on program exit."""

import atexit

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/visa_connection_selectivity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example script to choose visa from different visa resources."""

from tm_devices import DeviceManager
from tm_devices.helpers import PYVISA_PY_BACKEND, SYSTEM_DEFAULT_VISA_BACKEND

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/basic_curve_query.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing a basic curve query."""

from tm_devices import DeviceManager

EXAMPLE_CSV_FILE = "example_curve_query.csv"
Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/basic_save_recall.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of saving and recalling a waveform and session file."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO6B

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/generate_internal_afg_signal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing how to generate a signal using the scope's internal AFG."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO5

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/get_acquisition_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example script for connecting and configuring scope for acquisition."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO6B
from tm_devices.helpers import PYVISA_PY_BACKEND
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of adding dpojet measurements and plots."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO70KDX
from tm_devices.helpers import PYVISA_PY_BACKEND
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2400/smu_2460_pulse_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Converted to Python tm_devices script. DCA 4.7.23
"""

import time

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Converted to Python tm_devices script. DCA 4.7.23
"""

import time

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2400/smu_2461_1kw_pulsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This script creates pulses on the model 2461.
"""

from time import sleep

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
(smu.source.pulsesweeplinear) is sent to the instrument. The pulse command accepts a lot of
arguments so the the arguments are stored in variables to make them easier to read.
"""

from typing import cast, List

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
It does this by sourcing 300 V and measuring the resistance. The Simple Loop trigger model template
is used to make 10 measurements at 100 ms intervals.
"""

from typing import List

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
trigger model template applies the voltage for 60 seconds and makes measurements at 200 ms
intervals.
"""

from typing import List

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of creating and reading from a dynamic buffer."""

from tm_devices import DeviceManager
from tm_devices.drivers import SMU2601B

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

import math

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2600/smu_2600_bjt_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Converted to Python tm_devices script. DCA 4.11.23
"""

import time

from typing import Dict, Tuple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

import time

from typing import Dict, Tuple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

from datetime import datetime

from dateutil.tz import tzlocal
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2600/smu_2657_dioderl_swp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Linear voltage sweep to measure the reverse leakage of a diode."""

import math

from time import sleep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Converted to Python tm_devices script. DCA 5.10.23
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SMU2657A

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Converted to Python tm_devices script. DCA 6.6.23
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SMU2636B, SMU2657A

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Converted to Python tm_devices script. DCA 6.6.23
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SMU2636B, SMU2657A

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_basic_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
Rev: 1-EEB
1.1-Update Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_simple_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Rev: 1-EEB
1.1-Updated Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_temp_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Rev: 1-EEB
1.1-Update Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ poetry = ">=1.8.0"
pre-commit = ">=2.20.0"
pre-commit-update = ">=0.1.3"
pylint = {extras = ["spelling"], version = "3.1.0"} # Update this by running scripts/update_development_dependencies.py
pyright = "1.1.351" # Update this by running scripts/update_development_dependencies.py
pyright = "1.1.352" # Update this by running scripts/update_development_dependencies.py
pyroma = ">=4.2"
pytest = ">=7.1.2"
pytest-cov = ">=3.0.0"
pytest-html = ">=4.0"
pytest-order = ">=1.0.1"
pytest-profiling = ">=1.7.0"
python-semantic-release = ">=8.5.1"
ruff = "0.2.2" # Update this by running scripts/update_development_dependencies.py
ruff = "0.3.0" # Update this by running scripts/update_development_dependencies.py
safety = ">=2.1.1"
sphinx-autoapi = ">=2.0.0"
sphinx-copybutton = ">=0.5.1"
Expand Down
1 change: 1 addition & 0 deletions scripts/check_unreleased_changelog_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
It will also copy the necessary files into the template directory to properly render the CHANGELOG
and Release Notes.
"""

import pathlib
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions scripts/contributor_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This script will run through the commands listed in the CONTRIBUTING.md file.
"""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions scripts/create_post_version_for_testpypi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Create a post-release version for test.pypi.org."""

import argparse

from poetry.core.constraints.version import Version
Expand Down
1 change: 1 addition & 0 deletions scripts/project_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This script modifies or gets the current project version in the pyproject.toml file."""

import argparse
import pathlib

Expand Down
1 change: 1 addition & 0 deletions scripts/pypi_latest_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get the latest version from the index server."""

import argparse
import json

Expand Down
1 change: 1 addition & 0 deletions scripts/update_development_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This script will update the development dependencies that are pinned in the pyproject.toml and .pre-
commit-config.yaml files.
"""

import argparse
import shlex
import subprocess
Expand Down
1 change: 1 addition & 0 deletions src/tm_devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
True
2023-09-21 01:50:16.031 - DeviceManager Closed
"""

from importlib.metadata import version

from tm_devices.device_manager import DeviceManager, print_available_visa_devices
Expand Down
Loading

0 comments on commit 7644b5e

Please sign in to comment.