Skip to content

Commit

Permalink
test(BracketingNonlinearSolve): qq using Aqua and ExplicitImports
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 20, 2024
1 parent ca4cf05 commit 69d60a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/BracketingNonlinearSolve/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,26 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
BracketingNonlinearSolveForwardDiffExt = "ForwardDiff"

[compat]
Aqua = "0.8.9"
CommonSolve = "0.2.4"
ConcreteStructs = "0.2.3"
ExplicitImports = "1.10.1"
ForwardDiff = "0.10.36"
InteractiveUtils = "<0.0.1, 1"
NonlinearSolveBase = "1"
PrecompileTools = "1.2"
SciMLBase = "2.50"
Test = "1.10"
TestItemRunner = "1"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"

[targets]
test = ["InteractiveUtils", "ForwardDiff", "Test", "TestItemRunner"]
test = ["Aqua", "ExplicitImports", "ForwardDiff", "InteractiveUtils", "Test", "TestItemRunner"]
16 changes: 16 additions & 0 deletions lib/BracketingNonlinearSolve/test/qa_tests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@testitem "Aqua" tags=[:core] begin
using Aqua, BracketingNonlinearSolve

Aqua.test_all(BracketingNonlinearSolve; piracies = false, ambiguities = false)
Aqua.test_piracies(BracketingNonlinearSolve; treat_as_own = [IntervalNonlinearProblem])
Aqua.test_ambiguities(BracketingNonlinearSolve; recursive = false)
end

@testitem "Explicit Imports" tags=[:core] begin
import ForwardDiff
using ExplicitImports, BracketingNonlinearSolve

@test check_no_implicit_imports(BracketingNonlinearSolve; skip = (Base, Core)) === nothing
@test check_no_stale_explicit_imports(BracketingNonlinearSolve) === nothing
@test check_all_qualified_accesses_via_owners(BracketingNonlinearSolve) === nothing
end

0 comments on commit 69d60a7

Please sign in to comment.