polars icon indicating copy to clipboard operation
polars copied to clipboard

Remove all compilation warnings?

Open jjerphan opened this issue 2 years ago • 4 comments
trafficstars

Problem description

Hi!

First, thank you for developing Polars! :handshake:

Coming from the Scientific Python world, I am curious about Polars (see my as-of-now sole interaction https://github.com/pola-rs/polars/issues/2249#issuecomment-1287374875) and want to contribute to the project.

I have followed all the instructions in the "Contributing to the codebase" regarding getting started with a development environment but noticed a lot a compilations warnings when compiling the project when running make command (due to unused imports, to the declaration of unused variables or to the use of deprecated functions).

Would removing (some of) the compilation warnings be a good first issue?

Thank you for your feedback!

jjerphan avatar Nov 28 '22 20:11 jjerphan

It's definitely worth looking into, and I think it could be a good first issue.

Keep in mind that not all of these are easily fixed. Many of these warnings happen because of the way Polars does feature gating. But I think there is definitely room for improvement.

Looking forward to your contribution!

stinodego avatar Nov 29 '22 01:11 stinodego

Thank you for your prompt answer!

Many of these warnings happen because of the way Polars does feature gating.

Can you explain this in more details?

In particular, I just have opened #5664 and I am wondering whether it could be blocked by someone.

jjerphan avatar Nov 29 '22 07:11 jjerphan

Yeah, there are hard warning because of feature gating, but the warnings that are given by the tests should be easy.

It might not be the most fun, but its definitely thankful work. :)

ritchie46 avatar Nov 29 '22 08:11 ritchie46

Let me know if there are others issues or PR I can help you with. :slightly_smiling_face:

jjerphan avatar Nov 29 '22 09:11 jjerphan

Hi. When compiling polars (Rust) I do not get any warnings. Also clippy does not report anything. Is this issue done or am I missing something?

matthiasbeyer avatar Jan 22 '23 11:01 matthiasbeyer

I think it can be closed. The codebase moves fast, and warnings are introduced and removed frequently.

(I let polars' maintainers close this issue.)

jjerphan avatar Jan 22 '23 14:01 jjerphan

I think this has mostly been solved. If there are any specific warnings someone is concerned about, he/she can open a new issue.

stinodego avatar Jan 22 '23 15:01 stinodego

Maybe now is the time to deny the most common warnings, so they are not introduced anymore? :laughing:

matthiasbeyer avatar Jan 22 '23 15:01 matthiasbeyer

Maybe now is the time to deny the most common warnings, so they are not introduced anymore? 😆

They are. We only have warnings that occur on feature flag combinations not ran in our ci. Default features and all features activated don't have warnings on compilation.

ritchie46 avatar Jan 22 '23 15:01 ritchie46