Skip to content

Commit 26f81c0

Browse files
committed
ruff: add 3 noqa comments to disable new ruff rules
In general FBT001 is a good rule, but we don't want to introduce API breaking. For test_urimatch.py, that's an example class and we can't really add `__hash__`.
1 parent 1c87b37 commit 26f81c0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,8 +1330,8 @@ def _update_waiting_result(self) -> None:
13301330
@contextmanager
13311331
def wait(
13321332
self,
1333-
raise_assertions: bool | None = None,
1334-
stop_on_nohandler: bool | None = None,
1333+
raise_assertions: bool | None = None, # noqa: FBT001
1334+
stop_on_nohandler: bool | None = None, # noqa: FBT001
13351335
timeout: float | None = None,
13361336
):
13371337
"""Context manager to wait until the first of following event occurs: all ordered and oneshot handlers were

tests/test_urimatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def match(self, uri):
1414
return uri.startswith(self.prefix)
1515

1616

17-
class PrefixMatchEq:
17+
class PrefixMatchEq: # noqa: PLW1641
1818
def __init__(self, prefix: str):
1919
self.prefix = prefix
2020

0 commit comments

Comments
 (0)