diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f24edf..5dde50a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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.284 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/alicat/util.py b/alicat/util.py index 340428f..f533d79 100644 --- a/alicat/util.py +++ b/alicat/util.py @@ -195,7 +195,7 @@ def __init__(self, address: str, baudrate: int=19200, timeout: float=.15, """Initialize serial port.""" super().__init__(timeout) self.address = address - assert type(self.address) == str + assert isinstance(self.address, str) self.serial_details = {'baudrate': baudrate, 'bytesize': bytesize, 'stopbits': stopbits, diff --git a/setup.py b/setup.py index 6c75630..477f528 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ 'pytest-cov>=4,<5', 'pytest-asyncio==0.*', 'pytest-xdist==3.*', - 'ruff==0.0.282', + 'ruff==0.0.284', 'mypy==1.5.0', 'types-pyserial', ],