From d119722df647617605bfb0a51a95e1fc58d2c974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 13 Oct 2023 11:45:08 +0200 Subject: [PATCH] Restrict `project_toml_formatting` to julia 1.7 and later --- src/project_toml_formatting.jl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/project_toml_formatting.jl b/src/project_toml_formatting.jl index 7431f725..4fb79057 100644 --- a/src/project_toml_formatting.jl +++ b/src/project_toml_formatting.jl @@ -1,10 +1,17 @@ """ Aqua.test_project_toml_formatting(packages) + +Test that the files `Project.toml`, `docs/Project.toml` (if present), +and `test/Project.toml` (if present) are in canonical format according to Pkg.jl v1.9. + +This test does nothing on julia v1.6 or earlier. """ function test_project_toml_formatting(packages) - @testset "$(result.label)" for result in analyze_project_toml_formatting(packages) - @debug result.label result - @test result ⊜ true + if VERSION >= v"1.7-" + @testset "$(result.label)" for result in analyze_project_toml_formatting(packages) + @debug result.label result + @test result ⊜ true + end end end