Development

Run all commands below from the repository root using Julia 1.10 or later. The minimum reflects the requirements of DataInterpolations and the test tooling.

Regression tests

julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.test()'

The suite covers core kernels, depolarisation factors, molecule local-field corrections, an independent TERMS near-field reference, polarisability prescriptions, iterative solving, and automatic differentiation. HDF5 and ForwardDiff are test dependencies, not runtime dependencies.

Benchmarks

julia --project=bench -e 'using Pkg; Pkg.develop(path=pwd()); Pkg.instantiate()'
julia --project=bench bench/benchmarks.jl

BenchmarkTools lives in its own environment. Compare timings and allocations on the same machine and Julia version.

Website and notebook validation

julia --project=docs -e 'using Pkg; Pkg.develop(path=pwd()); Pkg.instantiate()'
julia --project=examples -e 'using Pkg; Pkg.develop(path=pwd()); Pkg.instantiate()'
julia --project=docs test/test_makie_extension.jl
julia --project=docs docs/make.jl

The build executes the Pluto notebooks with PlutoStaticHTML before Documenter runs, then copies their rendered pages and downloadable source into the documentation tree. Rendering is sequential to limit memory and compilation overhead, with one isolated notebook process at a time. Notebook errors fail the build; outputs are never silently replaced by stale plots. Documenter also runs docstring doctests.

Open docs/build/index.html locally. Generated notebook Markdown/HTML, local manifests and the website build directory are ignored by git. CI repeats the tests and website build, and Documenter deploys from main when credentials and event permissions allow it.

Dependency boundaries

The core retains DataFrames for its public table-returning APIs (including near-field coordinates) and ProgressMeter for pmap_df(...; showprogress=true). Removing those requires a separate compatibility design. Makie is a weak dependency, activated by loading a backend. Plotting/data-file tools used only by exploratory scripts are not installed by the solver. Historical scripts in dev/legacy/ are not maintained examples; use the validated Pluto gallery instead. They may need their own additional packages.