Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict project_toml_formatting to julia 1.7 and later #210

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Check warning on line 13 in src/project_toml_formatting.jl

View check run for this annotation

Codecov / codecov/patch

src/project_toml_formatting.jl#L10-L13

Added lines #L10 - L13 were not covered by tests
end
end
end

Expand Down
Loading