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 B608B562369; Thu, 3 Aug 2023 10:43:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B608B562369 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691048635; bh=sQm3dy99WE4FN5pBzpyNrI7wgnP3Zd713aEPAbrznWU=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=M/od51g/ZE0mefUN4yHP33aQ3W1uU6kv1HB5VTOltnVwsMYz+WyJWuxWNwYDQ7mtX sEGOaumpVv3iaHR/3my7+rzLR/0I4jFYTGIdOjUpQTaLG7fiL4HF7E9rS+op57TiUC BDeMtO+C7Q7vesXgnI9dWbyDeUxsNijjv322WK6M= Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [95.163.41.96]) (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 E3B774DA781 for ; Thu, 3 Aug 2023 10:43:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E3B774DA781 Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1qRSzw-000EDQ-0Y; Thu, 03 Aug 2023 10:43:52 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Thu, 3 Aug 2023 07:30:25 +0000 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD93761F2630DFFAF41A06C3F00224CE1B2857C7744A811472E182A05F538085040A9184CC50092A90B38BF7337F593683A55DF8EF2A45B3AB8C9A76B75A5E80DBC X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7C2204D4F9A221771EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006375D8840FA58F505298638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F4054DC6247EEE0EF38C45DA3A3449CF117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC5F0C88D684269EDEA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520CCD848CCB6FE560CC26CFBAC0749D213D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA968E75A379BAF682BD8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE389DDFE3E282F3DD103F1AB874ED89028C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CD2DCF9CF1F528DBC2E808ACE2090B5E1725E5C173C3A84C327ED053E960B195E089D37D7C0E48F6C8AA50765F79006373BA04B6A498D0BA4731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A543E6C550BCECDA4143F7D6B393291FE00E89AB873ECBA7F8F87CCE6106E1FC07E67D4AC08A07B9B04CB6874B0BCFF0B89C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742DC8270968E61249B1004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D3488E5CD2E691F556634A25D269CD7E7B1AD4ED9FE3039EAD5EFA65D7C9FF471137B6D6D9E7A5C63CA1D7E09C32AA3244CFE82447E921E843EAC0807CCB3A85C059CA7333006C390A0BAD658CF5C8AB4025DA084F8E80FEBD376A4ED3E9341DC2FCD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXjOdyWHnvabvPqTz+U9wmTW X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531159A7E4203E1E03DF28975E5F27694F84F2814800C3B275D2326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 00/15] Add flake8 linter 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" This series implements flak8 linter support for existing Python scripts in the repo (i.e. luajit-gdb.py and luajit_lldb.py). Almost all patches simply fix PEP8 violations found in our code, and the last patch of the series adds flake8 config, CMake subtarget to run flake8 in scope of the new target and adjusts lint workflow respectively. To be honest, not all of the errors reported by flake8 (or rather pycodestyle that is wrapped by flake8) are fixed at the moment. One can find some TODO entries in .flake8rc, since I've failed making flake8 happy and have finally given up. If you have any ideas how to resolve these TODOs, you're very welcome. Branch: https://github.com/tarantool/luajit/commits/imun/add-flake8 Igor Munkin (15): test: fix E122 errors by pycodestyle test: fix E128 errors by pycodestyle test: fix E201 and E202 errors by pycodestyle test: fix E203 errors by pycodestyle test: fix E231 errors by pycodestyle test: fix E251 errors by pycodestyle test: fix E301 errors by pycodestyle test: fix E302 errors by pycodestyle test: fix E303 errors by pycodestyle test: fix E305 errors by pycodestyle test: fix E502 errors by pycodestyle test: fix E711 errors by pycodestyle test: fix E722 errors by pycodestyle test: fix E741 errors by pycodestyle test: run flake8 static analysis via CMake .flake8rc | 12 ++ .github/workflows/lint.yml | 4 +- src/luajit-gdb.py | 325 ++++++++++++++++++++++------------- src/luajit_lldb.py | 336 +++++++++++++++++++++++-------------- test/CMakeLists.txt | 28 ++++ 5 files changed, 458 insertions(+), 247 deletions(-) create mode 100644 .flake8rc -- 2.30.2