From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 5DDFC56CD13; Tue, 8 Aug 2023 22:56:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5DDFC56CD13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691524603; bh=ILhVtp2HOlIuV3l8s9+Zv4777JnyRiTGHp4G+M7exB0=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=yFhMQEKOhpQHAeO6Ss6mxab1jyk1EX5TJ1iWI6osy56JwFxMpVtALSnjkxd5tB4HQ E1Zm9wjllX0C1soU9ZAoaMWXiTpvItG5dCdNKxDiNszwBaOvqmQHAsWdC5055GwbMq k38/qz9BRdA3Dr4De0Skt9Ot2TlQJ8qX1/+Qvzrw= Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [95.163.41.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 14AA656A9A0 for ; Tue, 8 Aug 2023 22:56:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 14AA656A9A0 Received: by smtp36.i.mail.ru with esmtpa (envelope-from ) id 1qTSor-005nU0-14; Tue, 08 Aug 2023 22:56:41 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Tue, 8 Aug 2023 19:42:39 +0000 Message-Id: <2559a1d630bf893d22e6e37bef9d55710999832f.1691523040.git.imun@tarantool.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD969E04B5EED670DC8BEB87106826C4595A10F7F5F18564AA6182A05F53808504094565D33DC913B2BD24EB1427D585B03A6E08EFBD12771388C17E4D4CAFB34EA X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AED985C8E545F588EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637CDA089757FB31C668638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D85C987C37B5C09E7A59877585743D39E8117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC47272755C61AA17BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735200AC5B80A05675ACD6FD1C55BDD38FC3FD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA96B91AC3BD56FC247D8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE389DDFE3E282F3DD16E0066C2D8992A16C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F790063788B3B24285A3CD0EEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A5A16217E9E47B1BD59CEE3CB01E4BE55FC6EC20BF4CFA3F44F87CCE6106E1FC07E67D4AC08A07B9B067F1C1C3ABB44F3A9C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D346F44602F3B49463483C68DC8908A9CA9EB5B3382C528211DD0F8F3AA642762122389DD4C68C8E3AA1D7E09C32AA3244CECBF4DAA48F9A783A885DEDCFF4C8DE37101BF96129E4011BAD658CF5C8AB4025DA084F8E80FEBD376A4ED3E9341DC2FCD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXh1UijLnvo0kllMFY+OikVD X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D5318460DAC02BEF7D43C351B6C36EB024A6BB0807D5F86E48B62326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 18/15] test: suppress E131 errors by pycodestyle X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Suppressed 4 occurrences of E131 ("continuation line unaligned for hanging indent") error reported by pycodestyle[1]. The reasons, why these violations are not fixed the way recommended in the docs are below: * The only difference between prefix and postfix loop statements (the latter is used in various generators and comprehensions) is the trailing colon. * The surrounding code is quite complex consisting of the cascade of the calls and list comprehensions. Hence, to emphasis the postfix loop used in list comprehensions, additional indent is preserved and inline suppressions are added. [1]: https://www.flake8rules.com/rules/E131.html Signed-off-by: Igor Munkin --- **NB**: This patch will be placed between "[PATCH luajit 02/15] test: fix E128 errors by pycodestyle" and "[PATCH luajit 03/15] test: fix E201 and E202 errors by pycodestyle" on the branch. CI: https://github.com/tarantool/luajit/actions/runs/5800936024/job/15724104222 src/luajit-gdb.py | 4 ++-- src/luajit_lldb.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/luajit-gdb.py b/src/luajit-gdb.py index f9623e53..9dcddb17 100644 --- a/src/luajit-gdb.py +++ b/src/luajit-gdb.py @@ -553,7 +553,7 @@ def dump_stack(L, base=None, top=None): ] dump.extend([ dump_stack_slot(L, maxstack + offset, base, top) - for offset in range(red, 0, -1) + for offset in range(red, 0, -1) # noqa: E131 ]) dump.extend([ '{padding} Stack: {nstackslots: >5} slots {padding}'.format( @@ -572,7 +572,7 @@ def dump_stack(L, base=None, top=None): # Dump all data slots in the (framelink, top) interval. dump.extend([ dump_stack_slot(L, framelink + offset, base, top) - for offset in range(frametop - framelink, 0, -1) + for offset in range(frametop - framelink, 0, -1) # noqa: E131 ]) # Dump frame slot (2 slots in case of GC64). dump.append(dump_framelink(L, framelink)) diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py index 53f3abca..13d9f2e3 100644 --- a/src/luajit_lldb.py +++ b/src/luajit_lldb.py @@ -844,7 +844,7 @@ def dump_stack(L, base=None, top=None): ] dump.extend([ dump_stack_slot(L, maxstack + offset, base, top) - for offset in range(red, 0, -1) + for offset in range(red, 0, -1) # noqa: E131 ]) dump.extend([ '{padding} Stack: {nstackslots: >5} slots {padding}'.format( @@ -864,7 +864,7 @@ def dump_stack(L, base=None, top=None): # Dump all data slots in the (framelink, top) interval. dump.extend([ dump_stack_slot(L, framelink + offset, base, top) - for offset in range(frametop - framelink, 0, -1) + for offset in range(frametop - framelink, 0, -1) # noqa: E131 ]) # Dump frame slot (2 slots in case of GC64). dump.append(dump_framelink(L, framelink)) -- 2.30.2