Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test with Aqua, minor fixes #184

Merged
merged 2 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DynamicHMC"
uuid = "bbc10e6e-7c05-544b-b16e-64fede858acb"
authors = ["Tamas K. Papp <[email protected]>"]
version = "3.4.5"
version = "3.4.6"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand All @@ -24,8 +24,8 @@ LogDensityProblems = "1, 2"
LogExpFunctions = "0.3"
MCMCDiagnosticTools = "0.2"
ProgressMeter = "1"
TensorCast = "0.4"
SimpleUnPack = "1"
TensorCast = "0.4"
julia = "1.6"

[extras]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Implementation of robust dynamic Hamiltonian Monte Carlo methods in Julia.
[![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://tpapp.github.io/DynamicHMC.jl/stable)
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://tpapp.github.io/DynamicHMC.jl/dev)
[![DOI](https://zenodo.org/badge/93741413.svg)](https://zenodo.org/badge/latestdoi/93741413)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)

## Overview

Expand Down
2 changes: 1 addition & 1 deletion src/NUTS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##### NUTS tree sampler implementation.
#####

export TreeOptionsNUTS
export NUTS

####
#### Trajectory and implementation
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand Down
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,17 @@ include("test_logging.jl")
include("sample-correctness_tests.jl")

####
#### statis analysis
#### static analysis and QA
####

# do not test on older Julia versions and nightly
if VERSION >= v"1.7" && isempty(VERSION.prerelease)
include("jet.jl")
end

@testset "Aqua" begin
import Aqua
Aqua.test_all(DynamicHMC; ambiguities = false)
# testing separately, cf https://github.com/JuliaTesting/Aqua.jl/issues/77
Aqua.test_ambiguities(DynamicHMC)
end