Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
pertsevds committed Jul 10, 2024
1 parent fd2fdd5 commit 02f4dcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 34 deletions.
24 changes: 4 additions & 20 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Used by "mix format"

defmodule LocalFormat do
@moduledoc false
def format(styler_compat) when styler_compat in [:gt, :eq] do
[
plugins: [Styler],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
end

def format(_) do
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
end
end

elixir_version = System.version()
styler_compat = Version.compare(elixir_version, "1.14.0")

LocalFormat.format(styler_compat)
[
plugins: [Styler],
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
17 changes: 3 additions & 14 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
defmodule DNSSRVCluster.MixProject do
use Mix.Project

@version "0.2.0"
@version "0.3.0"
@scm_url "https://github.com/pertsevds/dns_srv_cluster"
@maintainer "Dmitriy Pertsev"

def project do
elixir_version = System.version()
styler_compat = Version.compare(elixir_version, "1.14.0")

[
app: :dns_srv_cluster,
version: @version,
Expand All @@ -24,7 +21,7 @@ defmodule DNSSRVCluster.MixProject do
"coveralls.html": :test
],
docs: docs(),
deps: deps(styler_compat),
deps: deps(),
source_url: @scm_url,
homepage_url: @scm_url,
elixirc_paths: elixirc_paths(Mix.env()),
Expand Down Expand Up @@ -53,7 +50,7 @@ defmodule DNSSRVCluster.MixProject do
end

# Run "mix help deps" to learn about dependencies.
defp deps(styler_compat) when styler_compat in [:gt, :eq] do
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test, runtime: false},
Expand All @@ -62,14 +59,6 @@ defmodule DNSSRVCluster.MixProject do
]
end

defp deps(_) do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test, runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false}
]
end

defp aliases do
[
test: "test --no-start"
Expand Down

0 comments on commit 02f4dcf

Please sign in to comment.