From patchwork Mon Jun 1 20:51:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Filipe_La=C3=ADns?= X-Patchwork-Id: 1660 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 4B0F6191DF8E1 for ; Mon, 1 Jun 2020 20:52:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01,SPF_HELO_NONE=0.001,T_DMARC_POLICY_NONE=0.01 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-BL-Results: [127.0.0.19] [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 1 Jun 2020 20:52:13 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id AA3901C756B343; Mon, 1 Jun 2020 20:51:50 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id 6C1C81C756B316; Mon, 1 Jun 2020 20:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1591044705; bh=+f+VRNrOQ3jyHrCjy2GmglZNTAiAPsH8neKRw3W457o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=BnOz0S22QrLUHhfy+Cj4tMl/IknKaz9CqJj9TxU9zNIDsElWzZFwNvRTNqH0S1RUo Eqy/TMA6+kx0hMk1eeivivjiBa74Cy+zuMp/eSxBt7JaSjrVqKuYA4TsSaYO+t83Hl D9Kh6dbeRcWbaezQVh4C4FPkcT9ZBNPqv0S9Nl8vd2XgK/hagCSejWlNdh+m673fQ1 f9/DI69HICgX4yTk92Tqxwh/kJ/RlRgqskP5XA3LBk2lAjMHjJd+nDfd2eMi6xu+lB gsRDnTZwNJEgRWu/XYLOiZ2Dn+JxIqwOcedOUWagDp6vvRfz90z4TaHwTiySpqth0P dLuIZgCLZ/KSU4XZ2zA5+l2Yz6z3TdU8wC2w2HgC19aBujpVjFvD2p5sTcElAh6brU fe6eCsUyF0nO1aMW7PZ5Nv5xIO1YhcgijH3vEdt7im7V1xBfL4jW7qdpyvXb4bG/L/ jkJywnPvaLt+bU3WwqTiUWstCnPtdz6iyafbKcwBKbkiqsIjN7B+R6D/y1c+PoYc9K nKrmUpLjKo3WSdTlsHTlD2TLA4RHBKpmZMA/daRqSxkTdZZh126hvvk1QW4k0vAIdg jkCbf2e3Vb6qtQwfDS+gT2lMaIjT37DmYH0jCzXKSpgRmVgjzuSYaP8szSFeR4qGDL T3YlB14TVCC6IPUu3QaBIAtg= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 87B3D2C020; Mon, 1 Jun 2020 20:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1591044704; bh=+f+VRNrOQ3jyHrCjy2GmglZNTAiAPsH8neKRw3W457o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=cI+eZ/zDX5taklpRmzF8vcVCc3ewTTMyKzCje46eTeUjBti9eT56ARmrrgrcII0sJ rFiSAYQbJSDeE4is0wVjxBXqi5KPgiRDWXsvvr9TenzkSoQBvTpodwvtdiVYqlyq7h pRcSPPtCQxEdnVtTNUqOrOukYcUZOYIydakJ2oLNDmH1z5kPqk2ennPOJJxcHToEF+ QzGxBQ5xit6RLgtzv1bc9O/zdG+bIdvnW0osT/CFULwnsiAsdiq83UAygl0dZPeMDC tm4xWWWveCEBMJo2CI5qpqjxyKWWQqPNCdFieUbj4BUD7JYty5npr/mrdtmMN2R5Sl Z/4WRUin+enGLCCIYXwXSIJUcLJsgZ95hqgkbESwx/aaAKLqKskR+ZHhgCbIxoWMH5 62ieXOj4XdyIRnT5Fa58IeIeAQZJhyOt3ROP5kY2PI0fff07hd8cQKnl49zymNreK0 lVQOunHizhSa4bTVsSyKMrVUhnbY6QewPhLXzf4AjpdbmXcf8FUGM7z7AWEu7LpuTv Of4IWYat0/GWT3vALr/cIYQiIRpoXszcveUaYAd4AfWAS4Yd63oRd6XscAgnqD86Yw CNc/3btk5xTkw+BoUvNB8JYw7UloDXVk+/WibOCZYksdT8mkxMv90U5ZMjhLKKaqT4 uMPH2SBOO+P9cvpLRiEpoXMA= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 54FAA2C022 for ; Mon, 1 Jun 2020 20:51:41 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Mon, 1 Jun 2020 20:51:41 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 590D41C756B300; Mon, 1 Jun 2020 20:51:37 +0000 (UTC) Received: from localhost.localdomain (unknown [IPv6:2001:8a0:f254:2300:34be:8c97:bb49:e7fd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ffy00) by orion.archlinux.org (Postfix) with ESMTPSA; Mon, 1 Jun 2020 20:51:37 +0000 (UTC) From: =?utf-8?q?Filipe_La=C3=ADns?= To: aur-dev@archlinux.org Cc: =?utf-8?q?Filipe_La=C3=ADns?= Subject: [PATCH 3/3] pre-commit: add initial config Date: Mon, 1 Jun 2020 21:51:07 +0100 Message-Id: <20200601205107.2374989-3-lains@archlinux.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601205107.2374989-1-lains@archlinux.org> References: <20200601205107.2374989-1-lains@archlinux.org> MIME-Version: 1.0 X-BeenThere: aur-dev@archlinux.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Arch User Repository \(AUR\) Development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: aur-dev-bounces@archlinux.org Sender: "aur-dev" Signed-off-by: Filipe LaĆ­ns --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..b84a29e3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +hooks: + - &base + language: python + types: [python] + require_serial: true + - &flake8 + id: flake8 + name: flake8 + entry: flake8 + <<: *base + - &isort + id: isort + name: isort + entry: isort + <<: *base + +repos: + - repo: local + hooks: + - <<: *flake8 + - <<: *isort + args: ['--check-only', '--diff'] +