From a001d4168e46789f2abf05d7ae8a9e2039eb20a5 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Mon, 9 Mar 2026 23:34:58 -0500 Subject: [PATCH] Update precommit task with Credo --- mix.exs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mix.exs b/mix.exs index e211f23..ba31d74 100644 --- a/mix.exs +++ b/mix.exs @@ -78,7 +78,6 @@ defmodule GcIndexRelay.MixProject do setup: ["deps.get", "ecto.setup"], "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], "ecto.reset": ["ecto.drop", "ecto.setup"], - test: test_alias(), "test.unit": ["test --only unit"], "test.integration": [ "ecto.create --quiet", @@ -89,19 +88,9 @@ defmodule GcIndexRelay.MixProject do "compile --warnings-as-errors", "deps.unlock --unused", "format", - "test.integration" + "credo", + "test.unit" ] ] end - - # Conditionally set up database for tests - # Set REQUIRE_DB=true to run database migrations before tests - # Or use mix test.integration for integration tests with database - defp test_alias do - if System.get_env("REQUIRE_DB") == "true" do - ["test.integration"] - else - ["test"] - end - end end