From e7c007c64d39032c56dad2d2753489456c7fd6c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 23 Nov 2024 20:57:36 +0100 Subject: [PATCH] chore: ensure ruff run only on staged files at commit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/ocpp-server/.lintstagedrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ocpp-server/.lintstagedrc.js b/tests/ocpp-server/.lintstagedrc.js index c0cf629e..d1f91721 100644 --- a/tests/ocpp-server/.lintstagedrc.js +++ b/tests/ocpp-server/.lintstagedrc.js @@ -1,4 +1,4 @@ export default { '**/*.{json,md}': ['prettier --cache --write'], - '**/*.{py,pyi}': ['poetry run task format'], + '**/*.{py,pyi}': ['ruff check --fix', 'ruff format'], } -- 2.34.1