Skip to content

Commit

Permalink
Minor lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bessman committed Dec 22, 2024
1 parent cedf619 commit e57cb7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ ignore = [
"G004", # logging-f-string
"N818", # error-suffix-on-exception-name
"S101", # assert
"ANN101", # missing-type-self
"PT004", # pytest-missing-fixture-name-underscore
]

[tool.ruff.lint.pydocstyle]
Expand Down
8 changes: 4 additions & 4 deletions src/pytest_reserial/reserial.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Mode(IntEnum):
INVALID = 3


@pytest.fixture()
@pytest.fixture
def reserial(
monkeypatch: pytest.MonkeyPatch,
request: pytest.FixtureRequest,
Expand Down Expand Up @@ -290,8 +290,8 @@ def replay_close(self: Serial) -> None:


def replay_reconfigure_port(
self: Serial, # noqa: ARG001
force_update: bool = False, # noqa: ARG001, FBT001, FBT002
self: Serial,
force_update: bool = False, # noqa: FBT001, FBT002
) -> None:
"""Don't try to set parameters on the mocked port.
Expand All @@ -301,7 +301,7 @@ def replay_reconfigure_port(
"""


def replay_reset_input_buffer(self: Serial) -> None: # noqa:ARG001
def replay_reset_input_buffer(self: Serial) -> None:
"""Pretend to flush input buffer."""


Expand Down

0 comments on commit e57cb7b

Please sign in to comment.