chore: ensure ruff run only on staged files at commit
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 23 Nov 2024 19:57:36 +0000 (20:57 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 23 Nov 2024 19:57:36 +0000 (20:57 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/ocpp-server/.lintstagedrc.js

index c0cf629e9e3bb849dd2614df19714786877cb4ff..d1f917210207a62dc95eea61afe3c9bb526bd08d 100644 (file)
@@ -1,4 +1,4 @@
 export default {
   '**/*.{json,md}': ['prettier --cache --write'],
-  '**/*.{py,pyi}': ['poetry run task format'],
+  '**/*.{py,pyi}': ['ruff check --fix', 'ruff format'],
 }