-
Notifications
You must be signed in to change notification settings - Fork 48
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
Switch to explicit imports of names from packages #748
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #748 +/- ##
=======================================
Coverage 96.33% 96.33%
=======================================
Files 34 34
Lines 3353 3353
=======================================
Hits 3230 3230
Misses 123 123
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Benchmark Report for /home/runner/work/MixedModels.jl/MixedModels.jlJob Properties
ResultsA ratio greater than
Benchmark Group ListHere's a list of all the benchmark groups executed by this job:
Julia versioninfoTarget
Baseline
|
It appears that the test failure on nightly is the old problem of not finding the datasets to download. I'm not sure why the other Julia releases can do this but the nightly release fails to do so. |
btw do file an issue if you run into any issues! Also if you wish, you can add ExplicitExports as a test dep and use the |
Project.toml
Outdated
@@ -20,6 +20,7 @@ ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" | |||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | |||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | |||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | |||
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" |
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.
since we already have StaticArrays
, can we grab SVector
from there? I know this doesn't increase our total dependency load, but it's another thing to track.
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.
filed ericphanson/ExplicitImports.jl#24 fyi. I think though if you do using StaticArrays: SVector
, then it won't complain about the implicit import. But when it makes suggestions, it always does the "defining" module.
Co-authored-by: Phillip Alday <[email protected]>
BTW I put a PR to improve the printing, so next time you wouldn't have to manually regroup as much: ericphanson/ExplicitImports.jl#27 |
Thank you, @ericphanson , for implementing this change in the printing. That's very helpful. |
With the availability of ExplicitImports.jl it is feasible to list all the symbols used from a package in the dependencies instead of importing all the exported symbols.
These changes are based on the output of
ExplicitImports.print_explicit_imports(MixedModels)
.Did behavior change? No, the behavior didn't (or shouldn't have) change
docs/NEWS-update.jl
to update the cross-references.Should we release your changes right away? If so, bump the version: