diff --git a/.travis.yml b/.travis.yml index accb0f4..c19b6ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,10 @@ install: - mix local.rebar --force; - mix local.hex --force - mix deps.get +script: - mix format --check-formatted - mix credo -script: + - mix hex.outdated - mix test - mix test.integration deploy: diff --git a/config/dev.exs b/config/dev.exs index d2d855e..555abb0 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1 +1,4 @@ use Mix.Config + +config :husky, + pre_commit: "mix format --check-formatted && mix credo && mix hex.outdated" diff --git a/mix.exs b/mix.exs index 2a2d865..c227240 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule SmartCity.Registry.MixProject do def project do [ app: :smart_city_registry, - version: "3.2.0", + version: "3.2.1", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps(), @@ -28,14 +28,15 @@ defmodule SmartCity.Registry.MixProject do [ {:smart_city, "~> 2.1"}, {:jason, "~> 1.1"}, - {:redix, "~> 0.9.3"}, - {:dialyxir, "~> 0.5.1", only: :dev}, + {:redix, "~> 0.9"}, + {:dialyxir, "~> 0.5", only: :dev}, {:ex_doc, "~> 0.19", only: :dev}, - {:credo, "~> 0.10", only: [:dev, :test, :integration], runtime: false}, + {:credo, "~> 1.1", only: [:dev, :test, :integration], runtime: false}, {:divo, "~> 1.1", only: [:dev, :test, :integration]}, {:placebo, "~> 1.2", only: [:dev, :test, :integration]}, - {:mix_test_watch, "~> 0.9.0", only: :dev, runtime: false}, - {:checkov, "~> 0.4.0", only: :test} + {:mix_test_watch, "~> 0.9", only: :dev, runtime: false}, + {:checkov, "~> 0.4", only: :test}, + {:husky, "~> 1.0", only: :dev, runtime: false} ] end diff --git a/mix.lock b/mix.lock index 819889b..0b9d813 100644 --- a/mix.lock +++ b/mix.lock @@ -1,12 +1,13 @@ %{ "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"}, "checkov": {:hex, :checkov, "0.4.0", "a1974a5885f62f8943a9059f0d5252b222271e0e58dd872ffb60323f2e376433", [:mix], [], "hexpm"}, - "credo": {:hex, :credo, "0.10.2", "03ad3a1eff79a16664ed42fc2975b5e5d0ce243d69318060c626c34720a49512", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"}, + "credo": {:hex, :credo, "1.1.0", "e0c07b2fd7e2109495f582430a1bc96b2c71b7d94c59dfad120529f65f19872f", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"}, "dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"}, - "divo": {:hex, :divo, "1.1.4", "ead2cd0a060c5d6a670b1981837e59783a69b0aec01dea3d03dac981f1908d30", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:patiently, "~> 0.2", [hex: :patiently, repo: "hexpm", optional: false]}], "hexpm"}, - "earmark": {:hex, :earmark, "1.3.1", "73812f447f7a42358d3ba79283cfa3075a7580a3a2ed457616d6517ac3738cb9", [:mix], [], "hexpm"}, - "ex_doc": {:hex, :ex_doc, "0.19.3", "3c7b0f02851f5fc13b040e8e925051452e41248f685e40250d7e40b07b9f8c10", [:mix], [{:earmark, "~> 1.2", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"}, - "file_system": {:hex, :file_system, "0.2.6", "fd4dc3af89b9ab1dc8ccbcc214a0e60c41f34be251d9307920748a14bf41f1d3", [:mix], [], "hexpm"}, + "divo": {:hex, :divo, "1.1.6", "127a3dc76f380adcae9c663a54ccd414dc6935c900d2a6f2f7293d70b694cfd4", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:patiently, "~> 0.2", [hex: :patiently, repo: "hexpm", optional: false]}], "hexpm"}, + "earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"}, + "ex_doc": {:hex, :ex_doc, "0.20.2", "1bd0dfb0304bade58beb77f20f21ee3558cc3c753743ae0ddbb0fd7ba2912331", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"}, + "file_system": {:hex, :file_system, "0.2.7", "e6f7f155970975789f26e77b8b8d8ab084c59844d8ecfaf58cbda31c494d14aa", [:mix], [], "hexpm"}, + "husky": {:hex, :husky, "1.0.1", "c4859acf68849c219e2114da5795861a7183facc3b141c47432a9deb0032169e", [:mix], [{:poison, ">= 1.2.1", [hex: :poison, repo: "hexpm", optional: true]}], "hexpm"}, "jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"}, "makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"}, @@ -15,6 +16,7 @@ "nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"}, "patiently": {:hex, :patiently, "0.2.0", "67eb139591e10c4b363ae0198e832552f191c58894731efd3bf124ec4722267a", [:mix], [], "hexpm"}, "placebo": {:hex, :placebo, "1.2.1", "303ebb597279fd77b1f6d38ec377be4932f73246351f181d6128d0a58d3f74e9", [:mix], [{:meck, "~> 0.8.9", [hex: :meck, repo: "hexpm", optional: false]}], "hexpm"}, - "redix": {:hex, :redix, "0.9.3", "c51d66657018a9b14f3b4496b1ba70ef6a16e8414cd19b34635242ac371beb95", [:mix], [], "hexpm"}, - "smart_city": {:hex, :smart_city, "2.1.3", "f54b15c05990daf52e338ad335c5f473acf456b25d7c882d4ce09d085752b89e", [:mix], [], "hexpm"}, + "redix": {:hex, :redix, "0.10.2", "a9eabf47898aa878650df36194aeb63966d74f5bd69d9caa37babb32dbb93c5d", [:mix], [{:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, + "smart_city": {:hex, :smart_city, "2.1.4", "019b09dee94caefbf260c6d9461d28f86710f56dc408e659bb93b26d88fc1f41", [:mix], [], "hexpm"}, + "telemetry": {:hex, :telemetry, "0.4.0", "8339bee3fa8b91cb84d14c2935f8ecf399ccd87301ad6da6b71c09553834b2ab", [:rebar3], [], "hexpm"}, }