Add pre-commit hook to make sure static checks pass

This commit is contained in:
Claudio Ortolina
2025-02-21 08:54:22 +00:00
parent b6809218b1
commit d233d0b7a1
+4
View File
@@ -43,3 +43,7 @@ run = 'fly ssh console'
[tasks.static-checks]
description = 'Run static checks for code formatting, translations, quality'
run = 'mix do format, credo, gettext.extract'
[tasks.static-checks-hook]
description = 'Pre-commit task to ensure code conforms to static checks policies'
run = 'mix do format --check-formatted, credo --strict, gettext.extract --check-up-to-date'