From be1f7c542d279cef691dd2ecb22c609498666e24 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Fri, 17 May 2024 16:56:25 -0500 Subject: [PATCH] Enable Aqua tests (#459) * Enable Aqua tests * Drop RecipesBase dep --- Project.toml | 10 ++++++++-- README.md | 1 + test/runtests.jl | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index a3412d74..b5f40f66 100644 --- a/Project.toml +++ b/Project.toml @@ -9,7 +9,6 @@ Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" InlineStrings = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48" Mocking = "78c3b35d-d492-501b-9361-3d52fe80e533" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" -RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" Scratch = "6c6a2e73-6563-6170-7368-637461726353" TZJData = "dc5dba14-91b3-4cab-a142-028a31da12f7" Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" @@ -22,17 +21,24 @@ RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" TimeZonesRecipesBaseExt = "RecipesBase" [compat] +Aqua = "0.8" +Dates = "1" +Downloads = "1" InlineStrings = "1" Mocking = "0.7" +Printf = "1" RecipesBase = "0.7, 0.8, 1" Scratch = "1.1.1" TZJData = "1" +Test = "1" +Unicode = "1" julia = "1.6" p7zip_jll = "17.4" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "RecipesBase"] +test = ["Aqua", "Test", "RecipesBase"] diff --git a/README.md b/README.md index 750877da..52772601 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ TimeZones.jl [![CI](https://github.com/JuliaTime/TimeZones.jl/workflows/CI/badge.svg)](https://github.com/JuliaTime/TimeZones.jl/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/JuliaTime/TimeZones.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaTime/TimeZones.jl) +[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
[![Stable Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliatime.github.io/TimeZones.jl/stable) [![Dev Documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliatime.github.io/TimeZones.jl/dev) diff --git a/test/runtests.jl b/test/runtests.jl index 2c5fe6f4..e38eb8c5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,8 @@ using Mocking +using Aqua: Aqua using Base.BinaryPlatforms: Platform +using Dates: Dates using RecipesBase using Test using TimeZones @@ -36,6 +38,11 @@ end include("helpers.jl") @testset "TimeZones" begin + @testset "Aqua" begin + Aqua.test_all(TimeZones; ambiguities=false, piracies=false) + Aqua.test_piracies(TimeZones; treat_as_own=[TimeZone, Dates.DatePart]) + end + include("utils.jl") include("indexable_generator.jl")