From patchwork Mon Jun 1 22:35:28 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: 1665 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 D721C191E47B1 for ; Mon, 1 Jun 2020 22:36:42 +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,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.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 1 Jun 2020 22:36:42 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 757B81C7666137; Mon, 1 Jun 2020 22:36:01 +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 637641C76660E4; Mon, 1 Jun 2020 22:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1591050950; bh=11N06AzXNTXA85kqBAkD25v7oFlbAHkYqYONRPFSWVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=w4bB6Mljv+n24aInVvuQODiYuiSvQ+DPZ2SwMkmc2uJbPxes1jz0WxymizB81zsrt 8OjfKqGcZLntaV9M27ge1LVbiNQ9gD0cPOu9cqKOVZWAT/cQcQcyIrNFs9IsPlvJE+ e5IpyoC3JjX8OKYXr3761/IXALY4DHM3tkmjSXzUk/G71gxhJwnOfApcSZi6FNahjM lyJZ/Fa4evfdS+PYusmJTCwIZsQmc0ePBWmMf7YUBCyf3tEZ1EJQ/jP9M1ZQpw+DZw PN/p5lBgK57aRfGhMGHMEbYsAtftPs9d74qdx0uP/K9n6sRaTOkjlsm8yU4NrSeGlR yBCz5IAe2rqBic+nlK97K54nEi4j3930fGZTdVPMDiLeUFu5oNJkGJ3yBaqM1vZHWO Ux5r/vNwxNGL8Z3ORuKjn2Q1C0nf7REJS5TKPWno7pl/Ote8JhgY/GboBqIiXVhqjZ 3CJYn60LQYSrDpnriPQclxua0Db4fFVPYCIr5KvFNjr6sPvfQ+1iU2lJ6pn1kQnPru qFg2Ru6ERWDL2HKwaNwjKlIGYXeKXAimSszgukDMaUKdlHRLwl2LM/4pQDQdgRUQNY ifjgLuZUZJE+8s8LxdBUgeP+BPsVoRbvUWZ3luZLGxoxaGY76qlTV+pwNf1yOmooAZ KmHtTVUToHutYZWgJPrlEPMU= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 911302C01D; Mon, 1 Jun 2020 22:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1591050949; bh=11N06AzXNTXA85kqBAkD25v7oFlbAHkYqYONRPFSWVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=e484d1kvXhgUXp8gUeNKGAvPgD2NlkLb6NLYx+DuN9adLYkP8ghuNcL+G6i1vOvYA MxamjSfHa9+HWD1IPQkGgRwCzuJTW5M+q12whITXdrlHsb0Cm5YMUTbJRZOjBUWC6T Uh54enHL+2ZDu2lay1ZywOx8lna/dAPJ7XoNV+5vS7rYVa5sJs2pAKbDpz4+YxVDyr JdIPra5qXYqGL2+2jJkzoggrbBs31SWoDmaZRn5PCYV1fd1nXag7ROwIcZpNU9tMkE k7hmSFD4UUMf0eyBeUhDeO/eGfJoiaWzGqIQWAYe3g7oMTnmkNZqkdiIHbfZ1c65TX zqoOoohnMYeXzOJ9qWm4bVw005yyW7UzhlgHeSqVn+RJsTvKxqZmywMdK4rxnXRC/W wowdi5WiTlyrOoCraIjHyEtI5B5CMS6pJMX1JCE0v6diZqLnPbLxphs0jfMDqGLT+9 Y2WbQS/PQGLMSGfODa8fhPBIZ41WlTokH5QBjiZn5UQ3OVYWblSZmvdz+8g0qWAQVA dYFjhCQMnipxGDW6CYnzwyo7EvY/QtXsThdXPUQDeKLRMRER4kbXVkJFpJr+5O67Dr V9cKClwKLreUjzQfJTbtMSocxwWUOrppg5i0cABkgaXAOXB9vQOzm8YXkS2Xlarol1 OchcM3ovD+2RLzqEeut8SVWM= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id C87B12BE6F for ; Mon, 1 Jun 2020 22:35:46 +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 22:35:46 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id DE47B1C76660BD; Mon, 1 Jun 2020 22:35:45 +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 22:35:45 +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 v2 4/5] pre-commit: add initial config Date: Mon, 1 Jun 2020 23:35:28 +0100 Message-Id: <20200601223529.3006974-4-lains@archlinux.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601223529.3006974-1-lains@archlinux.org> References: <20200601223529.3006974-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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..525c7eb8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +hooks: + - &base + language: python + types: [python] + require_serial: true + exclude: ^migrations/versions + - &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'] +