diff --git a/Project.toml b/Project.toml index 659e131..1a15228 100644 --- a/Project.toml +++ b/Project.toml @@ -10,6 +10,7 @@ BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59" BioSymbols = "3c28c6f8-a34d-59c4-9654-267d177fcfa9" [compat] +Aqua = "0.6.0" BioAlignments = "2,3" BioGenerics = "0.1" BioSequences = "2,3" @@ -17,9 +18,10 @@ BioSymbols = "4,5" julia = "1.6" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" BioAlignments = "00701ae9-d1dc-5365-b64a-a3a3ebf5695e" BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "BioSequences", "BioAlignments"] +test = ["Aqua", "Test", "BioSequences", "BioAlignments"] diff --git a/README.md b/README.md index a69721f..2e4727b 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ SequenceVariation is tested against Julia `1.X` on Linux, OS X, and Windows. [![Unit Tests](https://github.com/BioJulia/SequenceVariation.jl/actions/workflows/UnitTests.yml/badge.svg?branch=master)](https://github.com/BioJulia/SequenceVariation.jl/actions/workflows/UnitTests.yml) [![Documentation](https://github.com/BioJulia/SequenceVariation.jl/workflows/Documentation/badge.svg?branch=master)](https://github.com/BioJulia/SequenceVariation.jl/actions?query=workflow%3ADocumentation+branch%3Amaster) [![codecov](https://codecov.io/gh/BioJulia/SequenceVariation.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/BioJulia/SequenceVariation.jl) +[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) ## Contributing diff --git a/docs/src/index.md b/docs/src/index.md index db64cff..f8d1cea 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -30,6 +30,7 @@ SequenceVariation is tested against Julia `1.X` on Linux, OS X, and Windows. [![Unit Tests](https://github.com/BioJulia/SequenceVariation.jl/actions/workflows/UnitTests.yml/badge.svg?branch=master)](https://github.com/BioJulia/SequenceVariation.jl/actions/workflows/UnitTests.yml) [![Documentation](https://github.com/BioJulia/SequenceVariation.jl/workflows/Documentation/badge.svg?branch=master)](https://github.com/BioJulia/SequenceVariation.jl/actions?query=workflow%3ADocumentation+branch%3Amaster) [![codecov](https://codecov.io/gh/BioJulia/SequenceVariation.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/BioJulia/SequenceVariation.jl) +[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) ## Contributing diff --git a/test/runtests.jl b/test/runtests.jl index 8e28d14..7e0b28a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -23,6 +23,7 @@ TODO now: * Add tests """ +using Aqua using BioAlignments using BioSequences using SequenceVariation @@ -125,3 +126,16 @@ end # Test that out-of-bounds bases are still caught @test_throws BoundsError Variant(PairwiseAlignment(AlignedSequence(mutseq, Alignment("7=3X", 1, 1)), refseq)) end + +@testset "Aqua" begin + Aqua.test_ambiguities(SequenceVariation;recursive=false) + # TODO: Refactor `Edit` so that this test doesn't fail + # TODO: This test _should_ be set to @test_fails, but Aqua's syntax doesn't allow that + # Aqua.test_unbound_args(SequenceVariation) + Aqua.test_undefined_exports(SequenceVariation) + Aqua.test_piracy(SequenceVariation) + Aqua.test_project_extras(SequenceVariation) + Aqua.test_stale_deps(SequenceVariation) + Aqua.test_deps_compat(SequenceVariation) + Aqua.test_project_toml_formatting(SequenceVariation) +end