diff --git a/tests/application_client/boilerplate_transaction.py b/tests/application_client/boilerplate_transaction.py index 02bd01f23..19f0625f1 100644 --- a/tests/application_client/boilerplate_transaction.py +++ b/tests/application_client/boilerplate_transaction.py @@ -13,22 +13,20 @@ def __init__(self, nonce: int, to: Union[str, bytes], value: int, - memo: str, - do_check: bool = True) -> None: + memo: str) -> None: self.nonce: int = nonce self.to: bytes = bytes.fromhex(to[2:]) if isinstance(to, str) else to self.value: int = value self.memo: bytes = memo.encode("ascii") - if do_check: - if not 0 <= self.nonce <= UINT64_MAX: - raise TransactionError(f"Bad nonce: '{self.nonce}'!") + if not 0 <= self.nonce <= UINT64_MAX: + raise TransactionError(f"Bad nonce: '{self.nonce}'!") - if not 0 <= self.value <= UINT64_MAX: - raise TransactionError(f"Bad value: '{self.value}'!") + if not 0 <= self.value <= UINT64_MAX: + raise TransactionError(f"Bad value: '{self.value}'!") - if len(self.to) != 20: - raise TransactionError(f"Bad address: '{self.to.hex()}'!") + if len(self.to) != 20: + raise TransactionError(f"Bad address: '{self.to.hex()}'!") def serialize(self) -> bytes: return b"".join([ diff --git a/tests/setup.cfg b/tests/setup.cfg index 7d0d7e305..7a95ab3a2 100644 --- a/tests/setup.cfg +++ b/tests/setup.cfg @@ -7,7 +7,9 @@ disable = C0114, # missing-module-docstring C0116, # missing-function-docstring C0103, # invalid-name R0801, # duplicate-code - R0913 # too-many-arguments + R0913, # too-many-arguments + R0917 # too-many-positional-arguments + max-line-length=100 extension-pkg-whitelist=hid