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

Add Aqua tests and resolve method ambiguities #119

Merged
merged 9 commits into from
Aug 9, 2024
Merged

Conversation

asinghvi17
Copy link
Member

This commit significantly narrows the types available for the first argument in convert_arguments(::T1, ::Table). This removes a method ambiguity I ran into when testing Shapefile.jl on my machine.

This commit significantly narrows the types available for the first argument in `convert_arguments(::T1, ::Table)`.  This removes a method ambiguity I ran into when testing Shapefile.jl on my machine.
@asinghvi17
Copy link
Member Author

CI failures are unrelated and fixed in #118.

@rafaqz
Copy link
Member

rafaqz commented Aug 8, 2024

Can we lock this in with Aqua.il tests?

@asinghvi17
Copy link
Member Author

I guess? Not sure how to test only one function though.

@rafaqz
Copy link
Member

rafaqz commented Aug 8, 2024

I mean test the whole thing! Maybe there are no other ambiguities and its fine? Otherwise sure we can merge it.

But you can ignore some functions or modules in Aqua ambiguity testing if you need to.

@asinghvi17
Copy link
Member Author

asinghvi17 commented Aug 9, 2024

There was only one ambiguity from Shapefile.jl proper which is pretty nice :D

Thanks for the tip, I implemented Aqua but ignored all the deps compat stuff for now. Tests should be green!

@asinghvi17 asinghvi17 changed the title Remove method ambiguity for scatter(::Table) convert arguments. Add Aqua tests and resolve method ambiguities Aug 9, 2024
@asinghvi17
Copy link
Member Author

asinghvi17 commented Aug 9, 2024

Ah these tests are failing here too, I thought it was just an issue on my laptop. Not sure what to do about these, they don't seem catalyzed by any change here.

https://github.com/JuliaGeo/Shapefile.jl/actions/runs/10312403712/job/28547583460?pr=119#step:5:831

This is mainly so that the overview is better looking.
test/runtests.jl Outdated Show resolved Hide resolved
@rafaqz
Copy link
Member

rafaqz commented Aug 9, 2024

Yes good to see. Weird that test has broken, I wonder what changed.

@asinghvi17 asinghvi17 requested a review from rafaqz August 9, 2024 20:18
@rafaqz rafaqz merged commit 3591da9 into main Aug 9, 2024
14 checks passed
@rafaqz rafaqz deleted the as/make_ambiguity branch August 9, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants