Skip to content

Commit 2643f42

Browse files
committed
chore: exclude from linter
1 parent 58e9300 commit 2643f42

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

scripts/add-utxo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def generate_single_podle_sig(u, priv, i):
4848
ecs[u]['reveal'][j] = {'P2':P2, 's':s, 'e':e}
4949
add_external_commitments(ecs)
5050

51-
def main():
51+
def main(): # noqa: C901
5252
parser = OptionParser(
5353
usage=
5454
'usage: %prog [options] [txid:n]',

scripts/joinmarket-qt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ def cleanUp(self):
11671167
self.tumbler_options = None
11681168
self.tumbler_destaddrs = None
11691169

1170-
def validateSingleSend(self):
1170+
def validateSingleSend(self): # noqa: C901
11711171
if not mainWindow.wallet_service:
11721172
JMQtMessageBox(self,
11731173
"There is no wallet loaded.",
@@ -1542,7 +1542,7 @@ def openAddressQRCodePopup(self, address):
15421542
bip21_uri = bip21_uri.upper()
15431543
self.openQRCodePopup(address, bip21_uri)
15441544

1545-
def updateWalletInfo(self, walletinfo=None):
1545+
def updateWalletInfo(self, walletinfo=None): # noqa: C901
15461546
max_mixdepth_count = jm_single().config.getint("GUI", "max_mix_depth")
15471547

15481548
previous_expand_states = []
@@ -1815,7 +1815,7 @@ def showAboutDialog(self):
18151815
lyt.addWidget(btnbox)
18161816
msgbox.exec_()
18171817

1818-
def exportPrivkeysJson(self):
1818+
def exportPrivkeysJson(self): # noqa: C901
18191819
if not self.wallet_service:
18201820
JMQtMessageBox(self,
18211821
"No wallet loaded.",

scripts/obwatch/ob-watcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def create_sybil_resistance_page(self, btc_unit: str) -> Tuple[str, str]:
495495

496496
return heading2, mainbody
497497

498-
def create_orderbook_table(self, btc_unit: str, rel_unit: str) -> Tuple[int, str]:
498+
def create_orderbook_table(self, btc_unit: str, rel_unit: str) -> Tuple[int, str]: # noqa: C901
499499
result = ''
500500
try:
501501
self.taker.dblock.acquire(True)

scripts/sendpayment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def pick_order(orders, n): #pragma: no cover
5050
return orders[pickedOrderIndex]
5151
pickedOrderIndex = -1
5252

53-
def main():
53+
def main(): # noqa: C901
5454
parser = get_sendpayment_parser()
5555
(options, args) = parser.parse_args()
5656
load_program_config(config_path=options.datadir)

scripts/snicker/snicker-recovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_pubs_and_indices_of_ancestor_inputs(txin, wallet_service, ours):
7171
tx = wallet_service.get_transaction(txin.prevout.hash[::-1])
7272
return get_pubs_and_indices_of_inputs(tx, wallet_service, ours=ours)
7373

74-
def main():
74+
def main(): # noqa: C901
7575
parser = OptionParser(
7676
usage=
7777
'usage: %prog [options] walletname',

scripts/tumbler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
log = get_log()
2222

23-
def main():
23+
def main(): # noqa: C901
2424
(options, args) = get_tumbler_parser().parse_args()
2525
options_org = options
2626
options = vars(options)

test/jmclient/test_taker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ def test_auth_pub_not_found(setup_taker):
375375
([(0, 0, 5, "mnsquzxrHXpFsZeL42qwbKdCP2y1esN3qw", 0, NO_ROUNDING)], False, False,
376376
2, False, ["J659UPUSLLjHJpaB", "J65z23xdjxJjC7er", 0], None), #test inadequate for sweep
377377
])
378-
def test_taker_init(setup_taker, schedule, highfee, toomuchcoins, minmakers,
379-
notauthed, ignored, nocommit):
378+
def test_taker_init(setup_taker, schedule, highfee, toomuchcoins, minmakers, # noqa: C901
379+
notauthed, ignored, nocommit):
380380
#these tests do not trigger utxo_retries
381381
oldtakerutxoretries = jm_single().config.get("POLICY", "taker_utxo_retries")
382382
oldtakerutxoamtpercent = jm_single().config.get("POLICY", "taker_utxo_amtpercent")

0 commit comments

Comments
 (0)