Skip to content

Commit c88a4b3

Browse files
authored
Merge pull request #184 from tpapp/tp/test_with_aqua
test with Aqua, minor fixes
2 parents fe9aa14 + fac5605 commit c88a4b3

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicHMC"
22
uuid = "bbc10e6e-7c05-544b-b16e-64fede858acb"
33
authors = ["Tamas K. Papp <tkpapp@gmail.com>"]
4-
version = "3.4.5"
4+
version = "3.4.6"
55

66
[deps]
77
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
@@ -24,8 +24,8 @@ LogDensityProblems = "1, 2"
2424
LogExpFunctions = "0.3"
2525
MCMCDiagnosticTools = "0.2"
2626
ProgressMeter = "1"
27-
TensorCast = "0.4"
2827
SimpleUnPack = "1"
28+
TensorCast = "0.4"
2929
julia = "1.6"
3030

3131
[extras]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Implementation of robust dynamic Hamiltonian Monte Carlo methods in Julia.
88
[![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://tpapp.github.io/DynamicHMC.jl/stable)
99
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://tpapp.github.io/DynamicHMC.jl/dev)
1010
[![DOI](https://zenodo.org/badge/93741413.svg)](https://zenodo.org/badge/latestdoi/93741413)
11+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
1112

1213
## Overview
1314

src/NUTS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##### NUTS tree sampler implementation.
33
#####
44

5-
export TreeOptionsNUTS
5+
export NUTS
66

77
####
88
#### Trajectory and implementation

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
34
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
45
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"

test/runtests.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@ include("test_logging.jl")
4040
include("sample-correctness_tests.jl")
4141

4242
####
43-
#### statis analysis
43+
#### static analysis and QA
4444
####
4545

4646
# do not test on older Julia versions and nightly
4747
if VERSION >= v"1.7" && isempty(VERSION.prerelease)
4848
include("jet.jl")
4949
end
50+
51+
@testset "Aqua" begin
52+
import Aqua
53+
Aqua.test_all(DynamicHMC; ambiguities = false)
54+
# testing separately, cf https://github.com/JuliaTesting/Aqua.jl/issues/77
55+
Aqua.test_ambiguities(DynamicHMC)
56+
end

0 commit comments

Comments
 (0)