Packages

Production-ready hyperparameter optimization for Elixir with high Optuna parity. Leverages BEAM fault tolerance, real-time dashboards, and native distributed computing.

Current section

Files

Jump to
scout mix.exs
Raw

mix.exs

defmodule ScoutCore.MixProject do
use Mix.Project
def project do
[
app: :scout_core, # Directory name must match in umbrella
version: "0.3.2",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
# Test coverage
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test
],
# Hex publishing
description: description(),
package: package(),
docs: docs(),
source_url: "https://github.com/jmanhype/scout",
homepage_url: "https://github.com/jmanhype/scout"
]
end
defp description do
"""
Production-ready hyperparameter optimization for Elixir with high Optuna parity.
Leverages BEAM fault tolerance, real-time dashboards, and native distributed computing.
"""
end
defp package do
[
name: "scout",
files: ~w(lib priv .formatter.exs mix.exs README* LICENSE* CHANGELOG* GETTING_STARTED* API_GUIDE* BENCHMARK_RESULTS*),
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/jmanhype/scout",
"Docs" => "https://hexdocs.pm/scout"
},
maintainers: ["Viable Systems"]
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Overview", filename: "readme"],
"GETTING_STARTED.md": [title: "Getting Started"],
"API_GUIDE.md": [title: "API Guide"],
"BENCHMARK_RESULTS.md": [title: "Benchmarks"]
],
groups_for_extras: [
"Guides": ~r/GETTING_STARTED|API_GUIDE/,
"Reference": ~r/BENCHMARK/
],
source_ref: "v0.3.2",
source_url: "https://github.com/jmanhype/scout"
]
end
def application do
[
extra_applications: [:logger, :runtime_tools],
mod: {Scout.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Core dependencies - always required
{:telemetry, "~> 1.2"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:jason, "~> 1.2"},
# Optional: Only needed if using Postgres adapter
{:ecto_sql, "~> 3.10", optional: true},
{:postgrex, ">= 0.0.0", optional: true},
{:oban, "~> 2.15", optional: true},
# Dev/Test
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:excoveralls, "~> 0.18", only: :test, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:benchee, "~> 1.1", only: :dev, runtime: false}
]
end
defp aliases do
[
# Default setup uses ETS (no DB required)
setup: ["deps.get"],
# Optional: run these if you want to use Postgres
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
# Tests use ETS by default
test: ["test"]
]
end
end