Skip to content

Commit

Permalink
python-deps(deps-dev): Bump the python-dependencies group with 1 upda…
Browse files Browse the repository at this point in the history
…te (#151)

* python-deps(deps-dev): Bump the python-dependencies group with 1 update

Updates the requirements on [pylint](https://github.com/pylint-dev/pylint) to permit the latest version.

Updates `pylint` to 3.1.0
- [Release notes](https://github.com/pylint-dev/pylint/releases)
- [Commits](pylint-dev/pylint@v3.0.3...v3.1.0)

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

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

* ci: Update dependency update workflow to check for the correct username to gate the update job.

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

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nicholas Felt <[email protected]>
Co-authored-by: Tektronix Bot <[email protected]>
  • Loading branch information
3 people authored Feb 26, 2024
1 parent 81c1caa commit 771bd05
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
update-python-and-pre-commit-deps:
name: Update python linters and pre-commit dependencies
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot' && contains(github.head_ref, '/pip/') }}
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.head_ref, '/pip/') }}
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
rev: v3.16.0
hooks:
- id: commitizen
stages: [commit-msg]
Expand Down
9 changes: 3 additions & 6 deletions examples/source_measure_units/2400/smu_2450_solar_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,9 @@
power = voltage * current
print("Voltage: ", voltage, "Current: ", current, "Power: ", power)

if current > imax:
imax = current
if power > pmax:
pmax = power
if voltage > vmax:
vmax = voltage
imax = max(imax, current)
pmax = max(pmax, power)
vmax = max(vmax, voltage)

if abs(current) < abs(MIN_CURR):
voc = voltage
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pip = ">=22.0"
poetry = ">=1.5.1"
pre-commit = ">=2.20.0"
pre-commit-update = ">=0.1.3"
pylint = {extras = ["spelling"], version = "3.0.3"} # Update this by running scripts/update_development_dependencies.py
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
pyroma = ">=4.2"
pytest = ">=7.1.2"
Expand Down Expand Up @@ -195,6 +195,8 @@ disable = [
"global-statement", # caught by ruff
"line-too-long", # caught by ruff
"locally-disabled", # allowed
"missing-class-docstring", # caught by ruff
"missing-module-docstring", # caught by ruff
"no-member", # caught by pyright
"protected-access", # caught by ruff
"raise-missing-from", # caught by ruff
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 @@ -58,7 +58,7 @@
rf"|(?P<{SupportedModels.AWG7K.value}>^AWG7\d\d\d$)"
rf"|(?P<{SupportedModels.AWG7KB.value}>^AWG7\d\d\dB$)"
rf"|(?P<{SupportedModels.AWG7KC.value}>^AWG7\d\d\dC$)"
rf"|(?P<{SupportedModels.AWG70KA.value}>^AWG70\d\d\dA$)"
rf"|(?P<{SupportedModels.AWG70KA.value}>^AWG70\d\d\dA?$)"
rf"|(?P<{SupportedModels.AWG70KB.value}>^AWG70\d\d\dB$)"
# Scopes
rf"|(?P<{SupportedModels.DPO5K.value}>^DPO5\d\d\d$)"
Expand Down

0 comments on commit 771bd05

Please sign in to comment.