Skip to content

Commit

Permalink
Restrict project_toml_formatting to julia 1.7 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 13, 2023
1 parent 19a5588 commit d119722
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/project_toml_formatting.jl
Original file line number Diff line number Diff line change
@@ -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

Check warning on line 14 in src/project_toml_formatting.jl

View check run for this annotation

Codecov / codecov/patch

src/project_toml_formatting.jl#L14

Added line #L14 was not covered by tests
end
end

Expand Down

0 comments on commit d119722

Please sign in to comment.