Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 28, 2023
1 parent 8bcae61 commit f5893bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,24 @@ defmodule Sqids.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
List.flatten([
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:recon, "~> 2.5", only: [:dev, :test], runtime: false},
{:sqids_blocklist,
github: "sqids/sqids-blocklist", branch: "main", only: :dev, runtime: false, app: false, compile: false},
maybe_credo_dep(),
maybe_dialyxir_dep(),
maybe_styler_dep()
])
end

defp maybe_credo_dep do
if Version.match?(System.version(), "~> 1.12") do
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
else
[]
end
end

defp maybe_dialyxir_dep do
if Version.match?(System.version(), "~> 1.12") do
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
Expand Down

0 comments on commit f5893bb

Please sign in to comment.