Skip to content

Commit

Permalink
Enable Aqua tests (#459)
Browse files Browse the repository at this point in the history
* Enable Aqua tests

* Drop RecipesBase dep
  • Loading branch information
omus committed May 17, 2024
1 parent 00559d4 commit be1f7c5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<br/>
[![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)
Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Mocking

using Aqua: Aqua
using Base.BinaryPlatforms: Platform
using Dates: Dates
using RecipesBase
using Test
using TimeZones
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit be1f7c5

Please sign in to comment.