Skip to content

Commit

Permalink
add Aqua to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Oct 5, 2023
1 parent 839cd02 commit 3f4f2c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ authors = ["Ismail Senoz <i.senoz@tue.nl>", "Dmitry Bagaev <d.v.bagaev@tue.nl>"]
version = "1.0.0"

[deps]
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DomainSets = "5b8099bc-c8ec-5219-889f-1d9e522a28bf"
FastCholesky = "2d5283b6-8564-42b6-bb00-83ed8e915756"
Expand All @@ -27,7 +26,7 @@ StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
TinyHugeNumbers = "783c9a47-75a3-44ac-a16b-f1ab7b3acf04"

[compat]
BlockArrays = "0.16"
Aqua = "0.7"
Distributions = "0.25"
DomainSets = "0.6"
FastCholesky = "1.0"
Expand All @@ -48,11 +47,12 @@ TinyHugeNumbers = "1.0.0"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
CpuId = "adafc99b-e345-5852-983c-f28acb93d879"
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["BenchmarkTools", "CpuId", "ReTestItems", "Test", "StableRNGs"]
test = ["Aqua", "BenchmarkTools", "CpuId", "ReTestItems", "Test", "StableRNGs"]
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ExponentialFamily.jl

| **Documentation** | **Build Status** | **Code Coverage** |
|:-------------------------------------------------------------------------:|:--------------------------------:|:---------------------------------------:|
| [![][docs-stable-img]][docs-stable-url] [![][docs-dev-img]][docs-dev-url] | [![CI][ci-img]][ci-url] | [![CodeCov][codecov-img]][codecov-url] |
| **Documentation** | **Build Status** | **Code Coverage** |
|:-------------------------------------------------------------------------:|:------------------------------------------------------:|:---------------------------------------:|
| [![][docs-stable-img]][docs-stable-url] [![][docs-dev-img]][docs-dev-url] | [![CI][ci-img]][ci-url] [![Aqua][aqua-img]][aqua-url] | [![CodeCov][codecov-img]][codecov-url] |

[ci-img]: https://github.com/biaslab/ExponentialFamily.jl/actions/workflows/CI.yml/badge.svg?branch=main
[ci-url]: https://github.com/biaslab/ExponentialFamily.jl/actions
Expand All @@ -16,6 +16,8 @@
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[docs-stable-url]: https://biaslab.github.io/ExponentialFamily.jl/stable

[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl

ExponentialFamily.jl is a Julia package that extends the functionality of Distributions.jl by providing a collection of exponential family distributions and customized implementations. It is designed to facilitate working with exponential family distributions and offers specialized functionality tailored to this class of distributions.

Expand Down
2 changes: 1 addition & 1 deletion src/prod.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export ProductDistribution, ClosedProd, PreserveTypeProd, PreserveTypeLeftProd, PreserveTypeRightProd
export ClosedProd, PreserveTypeProd, PreserveTypeLeftProd, PreserveTypeRightProd
export GenericProd, ProductOf, LinearizedProductOf

import Distributions
Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using CpuId, ReTestItems, ExponentialFamily
using Aqua, CpuId, ReTestItems, ExponentialFamily

# `ambiguities = false` - there are quite some ambiguities, but these should be normal and should not be encountered under normal circumstances
# `piracy = false` - we extend/add some of the methods to the objects defined in the Distributions.jl
Aqua.test_all(ExponentialFamily, ambiguities = false, piracy = false)

runtests(ExponentialFamily,
nworkers = cpucores(),
Expand Down

0 comments on commit 3f4f2c0

Please sign in to comment.