Keep your [compat] entries up to date, locally.
Helps keep [compat] entries in your Project.toml up to date. Reports when a [compat] is missing or incompatible with the latest available version of the corresponding dependency.
- Local-first: No GitHub integration needed, runs directly in your development environment
- Root & test support: Checks both main and test
Project.tomlfiles automatically, avoids duplicate suggestions - One-line integration: Just add
@check()to your test suite, no extra setup required - Never fails your tests: only reports issues, so new releases of dependencies don't break your CI
Put the following lines in <your package>/test/runtests.jl:
import CompatHelperLocal as CHL
CHL.@check()- CompatHelper.jl: A GitHub bot that automatically opens pull requests to update your
[compat]entries. Suitable for GitHub-centered workflows, while CompatHelperLocal.jl is ideal for local development and doesn't rely on external services.
Project.toml content:
name = "TestPackage"
uuid = "fde2a2d7-f0f0-4afe-ab6c-a8c3d7349667"
authors = ["Alexander Plavin <alexander@plav.in>"]
version = "0.1.0"
[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Scratch = "6c6a2e73-6563-6170-7368-637461726353"
xxxPackageXXX = "6c6a2e73-6563-6170-7368-637461726355"
YYYPackageYYY = "6c6a2e73-6563-6170-7368-637461726354"
[compat]
Scratch = "0.1, 0.2"
xxxPackageXXX = "1.0"
CompatHelperLocal output:
import CompatHelperLocal as CHL
CHL.@check()┌ Warning: Issues with project's [compat]
│ project = "./TestPackage/Project.toml"
└ @ CompatHelperLocal ~/.julia/packages/CompatHelperLocal/src/CompatHelperLocal.jl:105
┌ Info: [compat] missing
└ name = "CSV"
┌ Info: [compat] missing
└ name = "DataFrames"
┌ Info: [compat] missing
└ name = "Dates"
┌ Info: [compat] missing
└ name = "Downloads"
┌ Info: [compat] missing
└ name = "OrderedCollections"
┌ Info: [compat] missing
└ name = "julia"
┌ Info: [compat] outdated
│ name = "Scratch"
│ compat = "0.1, 0.2"
└ latest = v"1.3.0"
┌ Info: package in [deps] but not found in registries
└ name = "YYYPackageYYY"
┌ Info: package in [deps] but not found in registries
└ name = "xxxPackageXXX"
Suggested content:
[compat]
CSV = "1.3.0"
DataFrames = "1.8.3"
Dates = "1"
Downloads = "1"
OrderedCollections = "2.0.3"
Scratch = "0.1, 0.2, 1.3.0"
xxxPackageXXX = "1.0"
julia = "1.10"