Skip to content

Commit

Permalink
Update ruff to v0.0.287 (#42)
Browse files Browse the repository at this point in the history
* Update ruff to v0.0.287

* Use isinstance

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Ruddick <[email protected]>
  • Loading branch information
renovate[bot] and alexrudd2 authored Sep 7, 2023
1 parent 8d96931 commit 8220aad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-added-large-files
- id: check-json
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.282
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion ismatec/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def __aexit__(self, *args) -> None:

def _set_running_status(self, status, channel) -> None:
"""Manually set running status."""
if type(channel) == list:
if isinstance(channel, list):
logger.debug(f'manually setting running status {status} on channels {channel}')
for ch in channel:
self.running[ch] = status
Expand Down
2 changes: 1 addition & 1 deletion ismatec/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(self, address=None, baudrate=9600, timeout=.15, bytesize=serial.EIG
'stopbits': stopbits,
'parity': parity,
'timeout': timeout}
assert type(self.address) == str
assert isinstance(self.address, str)
self.ser = serial.Serial(self.address, **self.serial_details)

def read(self, length: int):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'pytest-xdist==3.*',
'mypy==1.5.1',
'types-pyserial',
'ruff==0.0.282',
'ruff==0.0.287',
],
},
entry_points={
Expand Down

0 comments on commit 8220aad

Please sign in to comment.