chore: run ruff on python files at pre-commit
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 26 Oct 2024 22:06:10 +0000 (00:06 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 26 Oct 2024 22:06:10 +0000 (00:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/ocpp-server/.lintstagedrc.js [new file with mode: 0644]

diff --git a/tests/ocpp-server/.lintstagedrc.js b/tests/ocpp-server/.lintstagedrc.js
new file mode 100644 (file)
index 0000000..c0cf629
--- /dev/null
@@ -0,0 +1,4 @@
+export default {
+  '**/*.{json,md}': ['prettier --cache --write'],
+  '**/*.{py,pyi}': ['poetry run task format'],
+}