From 810640de7e3c8592169b2966e6462f48d92f7080 Mon Sep 17 00:00:00 2001 From: Adam Wight Date: Wed, 8 Oct 2025 10:36:19 +0200 Subject: [PATCH] Minor tweaks to satisfy linter --- .github/workflows/ci.yml | 2 +- lib/todo_app.ex | 26 ++++++++++++++++---------- mix.lock | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0ad77c..90c8b0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: elixir-version: "1.16.3" otp-version: "26.2.5.9" - - uses: actions/checkout@v1 + - uses: actions/checkout@v5 - run: | mix local.hex --force mix local.rebar --force diff --git a/lib/todo_app.ex b/lib/todo_app.ex index 4834f44..6b28b68 100644 --- a/lib/todo_app.ex +++ b/lib/todo_app.ex @@ -30,16 +30,22 @@ defmodule TodoApp do :ets.new(:session, [:named_table, :public, read_concurrency: true]) - {:ok, sup} = Supervisor.start_link([ - TodoWeb.Telemetry, - TodoApp.Repo, - {DNSCluster, query: Application.get_env(:todo, :dns_cluster_query) || :ignore}, - {Phoenix.PubSub, name: TodoApp.PubSub}, - # Start a worker by calling: Todo.Worker.start_link(arg) - # {Todo.Worker, arg}, - # Start to serve requests, typically the last entry - TodoWeb.Endpoint - ], name: __MODULE__, strategy: :one_for_one) + {:ok, sup} = + Supervisor.start_link( + [ + TodoWeb.Telemetry, + TodoApp.Repo, + {DNSCluster, query: Application.get_env(:todo, :dns_cluster_query) || :ignore}, + {Phoenix.PubSub, name: TodoApp.PubSub}, + # Start a worker by calling: Todo.Worker.start_link(arg) + # {Todo.Worker, arg}, + # Start to serve requests, typically the last entry + TodoWeb.Endpoint + ], + name: __MODULE__, + strategy: :one_for_one + ) + TodoApp.Repo.initialize() {:ok, _} = diff --git a/mix.lock b/mix.lock index 14348a5..e10a01a 100644 --- a/mix.lock +++ b/mix.lock @@ -14,7 +14,7 @@ "dbus": {:hex, :dbus, "0.8.0", "7c800681f35d909c199265e55a8ee4aea9ebe4acccce77a0740f89f29cc57648", [:make], [], "hexpm", "a9784f2d9717ffa1f74169144a226c39633ac0d9c7fe8cb3594aeb89c827cca5"}, "debouncer": {:hex, :debouncer, "0.1.8", "ab7f6eef7c9f029929bb2b737de6dc4bf12ac4ddedb49194ba00f4240b226b5a", [:mix], [], "hexpm", "77c4be1d10f984aec0dfbc50d43c16d7512605cabe6d79cadc0c8f4ba95d4906"}, "decimal": {:hex, :decimal, "2.3.0", "3ad6255aa77b4a3c4f818171b12d237500e63525c2fd056699967a3e7ea20f62", [:mix], [], "hexpm", "a4d66355cb29cb47c3cf30e71329e58361cfcb37c34235ef3bf1d7bf3773aeac"}, - "desktop": {:git, "https://github.com/elixir-desktop/desktop.git", "4d5768dad0380ae0f3f4a80b0e2628c9872e1e25", []}, + "desktop": {:git, "https://github.com/elixir-desktop/desktop.git", "9a782440cd852292ff5a2a09dd6c3fcc3faac94c", []}, "desktop_deployment": {:git, "https://github.com/elixir-desktop/deployment.git", "29aa9b2de6465242b50a7b37d91b2141c505b347", []}, "dns_cluster": {:hex, :dns_cluster, "0.2.0", "aa8eb46e3bd0326bd67b84790c561733b25c5ba2fe3c7e36f28e88f384ebcb33", [:mix], [], "hexpm", "ba6f1893411c69c01b9e8e8f772062535a4cf70f3f35bcc964a324078d8c8240"}, "ecto": {:hex, :ecto, "3.13.3", "6a983f0917f8bdc7a89e96f2bf013f220503a0da5d8623224ba987515b3f0d80", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "1927db768f53a88843ff25b6ba7946599a8ca8a055f69ad8058a1432a399af94"},