-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
typos and Aqua CI #276
base: master
Are you sure you want to change the base?
typos and Aqua CI #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think DESolution
etc. should be treated as owned by DelayDiffEq. It's just type piracy:
Lines 219 to 233 in 3e9c423
function Base.sizehint!(sol::DESolution, n) | |
sizehint!(sol.u, n) | |
sizehint!(sol.t, n) | |
sizehint!(sol.k, n) | |
nothing | |
end | |
""" | |
sizehint!(sol::DESolution, alg, tspan, tstops, saveat; kwargs...) | |
Suggest that solution `sol` reserves capacity for a number of elements that | |
depends on the parameter settings of the numerical solver. | |
""" | |
function Base.sizehint!(sol::DESolution, alg, tspan, tstops, saveat; |
LinearAlgebra = "1" | ||
Logging = "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an unfortunate problem (https://discourse.julialang.org/t/psa-compat-requirements-in-the-general-registry-are-changing/104958#update-november-9th-2023-2) that means it is generally safer to use
LinearAlgebra = "1" | |
Logging = "1" | |
LinearAlgebra = "<0.0.1, 1" | |
Logging = "<0.0.1, 1" |
OrdinaryDiffEq = "6.49.1" | ||
Printf = "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Printf = "1" | |
Printf = "<0.0.1, 1" |
Aqua.find_persistent_tasks_deps(DelayDiffEq) | ||
Aqua.test_ambiguities(DelayDiffEq, recursive = false) | ||
Aqua.test_deps_compat(DelayDiffEq) | ||
Aqua.test_piracies(DelayDiffEq, | ||
treat_as_own = [DelayDiffEq.SciMLBase.DESolution, | ||
DelayDiffEq.SciMLBase.SciMLSolution]) | ||
Aqua.test_project_extras(DelayDiffEq) | ||
Aqua.test_stale_deps(DelayDiffEq) | ||
Aqua.test_unbound_args(DelayDiffEq) | ||
Aqua.test_undefined_exports(DelayDiffEq) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I'd prefer to use Aqua.test_all
to not miss out on any tests in the future (again, it seems there's some fine-tuning with keyword arguments necessary anyway).
Since the ambiguity check is problematic currently, I suggest (as e.g. in Distributions and Pumas) using
Aqua.find_persistent_tasks_deps(DelayDiffEq) | |
Aqua.test_ambiguities(DelayDiffEq, recursive = false) | |
Aqua.test_deps_compat(DelayDiffEq) | |
Aqua.test_piracies(DelayDiffEq, | |
treat_as_own = [DelayDiffEq.SciMLBase.DESolution, | |
DelayDiffEq.SciMLBase.SciMLSolution]) | |
Aqua.test_project_extras(DelayDiffEq) | |
Aqua.test_stale_deps(DelayDiffEq) | |
Aqua.test_unbound_args(DelayDiffEq) | |
Aqua.test_undefined_exports(DelayDiffEq) | |
# Test ambiguities separately without Base and Core | |
# Ref: https://github.com/JuliaTesting/Aqua.jl/issues/77 | |
Aqua.test_all(DelayDiffEq; ambiguities = false) | |
Aqua.test_ambiguities(DelayDiffEq) |
Oh I didn't know there was a sizehint! overload here. Yeah no that should move to SciMLBase. |
method ambiguity detection maybe can't cope with these weird types?