From: Jérôme Benoit Date: Sat, 23 Nov 2024 19:57:36 +0000 (+0100) Subject: chore: ensure ruff run only on staged files at commit X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;ds=inline;p=e-mobility-charging-stations-simulator.git chore: ensure ruff run only on staged files at commit Signed-off-by: Jérôme Benoit --- 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'], }