Skip to content

Commit

Permalink
ci: Update python linters and pre-commit dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
tek-githubbot-1010 committed Jul 22, 2024
1 parent f911d7d commit cc5410c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
- id: check-github-workflows
args: [--verbose]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
rev: v3.28.0
hooks:
- id: commitizen
stages: [commit-msg]
Expand Down Expand Up @@ -141,7 +141,7 @@ repos:
always_run: true
args: [audit, --json, --ignore-code=CVE-2019-8341]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.5.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 @@ -41,7 +41,7 @@ python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0
pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "4.0"
pyyaml-env-tag==0.1 ; python_version >= "3.8" and python_version < "4.0"
requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0"
setuptools==70.3.0 ; python_version >= "3.8" and python_version < "4.0"
setuptools==71.1.0 ; 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"
symspellpy==6.7.7 ; python_version >= "3.8" and python_version < "4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/tm_devices/drivers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def reboot(self, quiet_period: int = 0) -> bool:
return rebooted

@final
def verify_values( # noqa: PLR0913
def verify_values(
self,
expected_value: Union[str, float],
actual_value: Union[str, float],
Expand Down
2 changes: 1 addition & 1 deletion src/tm_devices/drivers/pi/pi_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def reset_visa_timeout(self) -> None:
"""Reset the VISA timeout to the default value."""
self.visa_timeout = self._default_visa_timeout

def set_and_check( # noqa: PLR0913
def set_and_check(
self,
command: str,
value: Union[str, float],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run_script(self, script_name: str) -> None: # noqa: ARG002
msg = f"This functionality is not available on the {self.__class__.__name__} instrument."
raise NotImplementedError(msg)

def set_and_check( # noqa: PLR0913
def set_and_check(
self,
command: str,
value: Union[str, float],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run_script(self, script_name: str) -> None: # noqa: ARG002
msg = f"This functionality is not available on the {self.__class__.__name__} instrument."
raise NotImplementedError(msg)

def set_and_check( # noqa: PLR0913
def set_and_check(
self,
command: str,
value: Union[str, float],
Expand Down
2 changes: 1 addition & 1 deletion src/tm_devices/drivers/pi/tsp_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def run_script(self, script_name: str) -> None:
"""
self.write(f"{script_name}()")

def set_and_check( # noqa: PLR0913
def set_and_check(
self,
command: str,
value: Union[str, float],
Expand Down
6 changes: 3 additions & 3 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packaging==24.1 ; python_version >= "3.8" and python_version < "4.0"
pathvalidate==3.2.0 ; python_version >= "3.8" and python_version < "4.0"
pluggy==1.5.0 ; python_version >= "3.8" and python_version < "4.0"
pytablewriter==1.2.0 ; python_version >= "3.8" and python_version < "4.0"
pytest==8.2.2 ; python_version >= "3.8" and python_version < "4.0"
pytest==8.3.1 ; python_version >= "3.8" and python_version < "4.0"
pytest-cov==5.0.0 ; python_version >= "3.8" and python_version < "4.0"
pytest-depends==1.0.1 ; python_version >= "3.8" and python_version < "4.0"
pytest-env==1.1.3 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -38,8 +38,8 @@ 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.32.3 ; python_version >= "3.8" and python_version < "4.0"
ruff==0.5.2 ; python_version >= "3.8" and python_version < "4.0"
setuptools==70.3.0 ; python_version >= "3.8" and python_version < "4.0"
ruff==0.5.4 ; python_version >= "3.8" and python_version < "4.0"
setuptools==71.1.0 ; 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"
tabledata==1.3.3 ; python_version >= "3.8" and python_version < "4.0"
Expand Down

0 comments on commit cc5410c

Please sign in to comment.