Migrate dev:static-checks to dev:lint in standalone script

This commit is contained in:
Claudio Ortolina
2025-10-06 18:21:49 +03:00
parent 27608986df
commit 4d5fcf64e0
3 changed files with 12 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
#MISE description="Run static checks for code formatting, translations, quality"
set -e
mix lint
-4
View File
@@ -53,10 +53,6 @@ hide = true
# DEVELOPMENT/TEST
[tasks."dev:static-checks"]
description = 'Run static checks for code formatting, translations, quality'
run = 'mix do format, credo, gettext.extract --merge'
[tasks.test]
description = 'Run project tests'
run = 'mix test'
+5
View File
@@ -147,6 +147,11 @@ defmodule MusicLibrary.MixProject do
],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
lint: [
"format",
"credo",
"gettext.extract --merge"
],
# When running the migrate task WITHOUT setting the log_level option,
# Ecto defaults to debug IRRESPECTIVELY of the log level set in
# config/test.exs. The debug log level persists while the first 2-3